Subversion Repository Public Repository

litesoft

Diff Revisions 949 vs 950 for /trunk/Java/GWT/OldClient/src/org/litesoft/GWT/client/nonpublic/LLAlertUnexpectedProblemHandler.java

Diff revisions: vs.
  @@ -1,25 +1,26 @@
1 - // This Source Code is in the Public Domain per: http://unlicense.org
2 - package org.litesoft.GWT.client.nonpublic;
3 -
4 - import org.litesoft.GWT.client.*;
5 - import org.litesoft.commonfoundation.typeutils.*;
6 - import org.litesoft.core.util.nonpublic.*;
7 -
8 - public class LLAlertUnexpectedProblemHandler extends LLAlertUnexpectedExceptionHandler
9 - implements LLUnexpectedProblemHandler {
10 - public final void LLhandleNonNull( String pFrom, String pProblemCode, String[] pProblemValues,
11 - Throwable pException ) {
12 - String zFriendlyFrom = deCamelize( pFrom );
13 - String zBody = "There was a problem from:\r\n\r\n " + zFriendlyFrom;
14 - StringBuilder zDetail = new StringBuilder();
15 - zDetail.append( "Unexpected Problem from: " ).append( pFrom ).append( "\r\n" );
16 - zDetail.append( "of:\r\n" ).append( pProblemCode );
17 - if ( pProblemValues != null ) {
18 - String zValues = Strings.noEmpty( Objects.toString( pProblemValues, "\r\n" ) );
19 - if ( zValues != null ) {
20 - zDetail.append( "\r\n" ).append( zValues );
21 - }
22 - }
23 - AlertManager.alert( pFrom, "Error", zBody, zDetail.toString(), pException );
24 - }
25 - }
1 + // This Source Code is in the Public Domain per: http://unlicense.org
2 + package org.litesoft.GWT.client.nonpublic;
3 +
4 + import org.litesoft.GWT.client.*;
5 + import org.litesoft.commonfoundation.base.*;
6 + import org.litesoft.commonfoundation.typeutils.*;
7 + import org.litesoft.core.util.nonpublic.*;
8 +
9 + public class LLAlertUnexpectedProblemHandler extends LLAlertUnexpectedExceptionHandler
10 + implements LLUnexpectedProblemHandler {
11 + public final void LLhandleNonNull( String pFrom, String pProblemCode, String[] pProblemValues,
12 + Throwable pException ) {
13 + String zFriendlyFrom = deCamelize( pFrom );
14 + String zBody = "There was a problem from:\r\n\r\n " + zFriendlyFrom;
15 + StringBuilder zDetail = new StringBuilder();
16 + zDetail.append( "Unexpected Problem from: " ).append( pFrom ).append( "\r\n" );
17 + zDetail.append( "of:\r\n" ).append( pProblemCode );
18 + if ( pProblemValues != null ) {
19 + String zValues = ConstrainTo.significantOrNull( Objects.toString( pProblemValues, "\r\n" ) );
20 + if ( zValues != null ) {
21 + zDetail.append( "\r\n" ).append( zValues );
22 + }
23 + }
24 + AlertManager.alert( pFrom, "Error", zBody, zDetail.toString(), pException );
25 + }
26 + }