| java.lang.Object util.ReportError
ReportError | final public class ReportError (Code) | | Handle error reporting in a way that looks less catastrophic
than exceptions typically do.
|
Field Summary | |
final public static String | ADMIN Culpable party is the administrator - the
applet was fed the wrong parameters. | final public static String | ERROR Serious error. | final public static String | INFORMATION Informational only. | final public static String | INTERNAL Culpable party was the developer who wrote bad code. | final public static String | SYSTEM Culpable party was the developer who wrote bad code for
other developers. | final public static String | UNKNOWN Unknown. | final public static String | USER Culpable party was the user. | final public static String | WARNING Warning. |
Method Summary | |
public static void | handleException(Exception e, String obj, String mthd, String s) Handle an exception. | public static void | handleException(Exception e, String obj, String mthd, String s, boolean doTrace) Handle an exception. | public static void | reportError(String type, String obj, String mthd, String s) Report an internal error. | public static void | reportError(String level, String type, String obj, String mthd, String s) Report an internal error. |
ADMIN | final public static String ADMIN(Code) | | Culpable party is the administrator - the
applet was fed the wrong parameters.
|
INFORMATION | final public static String INFORMATION(Code) | | Informational only.
|
INTERNAL | final public static String INTERNAL(Code) | | Culpable party was the developer who wrote bad code.
|
SYSTEM | final public static String SYSTEM(Code) | | Culpable party was the developer who wrote bad code for
other developers.
|
USER | final public static String USER(Code) | | Culpable party was the user.
|
handleException | public static void handleException(Exception e, String obj, String mthd, String s)(Code) | | Handle an exception. With stack trace.
Parameters: e - exception Parameters: obj - the unhappy class Parameters: mthd - the unhappy method Parameters: s - the error string |
handleException | public static void handleException(Exception e, String obj, String mthd, String s, boolean doTrace)(Code) | | Handle an exception.
Parameters: e - exception Parameters: obj - the unhappy class Parameters: mthd - the unhappy method Parameters: s - the error string Parameters: doTrace - optionally dump stack trace |
reportError | public static void reportError(String type, String obj, String mthd, String s)(Code) | | Report an internal error.
Parameters: type - error type Parameters: obj - the unhappy class Parameters: mthd - the unhappy method Parameters: s - the error string |
reportError | public static void reportError(String level, String type, String obj, String mthd, String s)(Code) | | Report an internal error.
Parameters: level - error level Parameters: type - error type Parameters: obj - the unhappy class Parameters: mthd - the unhappy method Parameters: s - the error string |
|
|