|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ErrorHandler
An ErrorHandler is called to report errors in application code (bad use of the framework, or an uncaught exception).
To specify your own ErrorHandler, configure in your application module descriptor something like:
<replace-with class="YourErrorHandlerClass"><when-type-assignable class="org.cruxframework.crux.core.client.errors.ErrorHandler" /></replace-with>
| Method Summary | |
|---|---|
void |
handleError(String errorMessage)
Handle an error on application |
void |
handleError(String errorMessage,
Throwable t)
Handle an error on application |
void |
handleError(Throwable t)
Handle an error on application |
void |
handleError(Throwable t,
boolean uncaught)
Handle an error on application |
| Method Detail |
|---|
void handleError(String errorMessage)
errorMessage - The error messagevoid handleError(Throwable t)
t - The exception
void handleError(Throwable t,
boolean uncaught)
t - The exceptionuncaught - True if it is an uncaught exception
void handleError(String errorMessage,
Throwable t)
errorMessage - The error messaget - The exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||