litesoft
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
package org.litesoft.GWT.client.nonpublic;
import org.litesoft.GWT.client.*;
import org.litesoft.core.util.*;
import org.litesoft.core.util.nonpublic.*;
public class LLAlertUnexpectedExceptionHandler implements LLUnexpectedExceptionHandler
{
protected String deCamelize( String pFrom )
{
pFrom = "." + pFrom;
pFrom = pFrom.substring( pFrom.lastIndexOf( '.' ) + 1 );
return DeCamelizer.resolve( UtilsGwt.replace( pFrom, '$', " " ) );
}
public final void LLhandleNonNull( String pFrom, Throwable pException )
{
String zFriendlyFrom = deCamelize( pFrom );
String zBody = "There was a exception from:\n\n" + //
" " + zFriendlyFrom + "\n\n" + //
pException.getMessage();
String zDetail = "Unexpected Exception from: " + pFrom;
AlertManager.alert( pFrom, "Error", zBody, zDetail, pException );
}
}
|
Revision |
Author |
Commited |
Message |
2
|
GeorgeS
|
Sun 07 Feb, 2010 12:50:58 +0000 |
|