|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ErrorHandler<A extends Action>
Error handlers are created by the factory for each request/use of
an extension point. The error handler doesn't have to be thread-safe, but
must be if the factory re-uses a single instance. Whenever an exception
happens during the processing of an extension, the error is re-directed
to the error handler. The error handler is more or less free to do what
it wants. The default implementation LoggingErrorHandlerFactory
simply puts a message in the log. Note that it is not usually practical
to let the error propagate up to the gui level.
Method Summary | |
---|---|
void |
handleError(InvokationContext<? extends A> context,
A action,
String message,
Throwable t)
Handle an exception that has happened. |
Method Detail |
---|
void handleError(InvokationContext<? extends A> context, A action, String message, Throwable t)
Note that there are three stages in the extension mechanism, which may cause some of the parameters to be null:
context
- The extension context, which can be nullaction
- The action that was being rendered when the
error happened, which can be nullmessage
- An optional error messaget
- The error
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |