public class RethrowErrorHandlerFactory extends LoggingErrorHandlerFactory
LoggingErrorHandlerFactory.Level
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
log |
Constructor and Description |
---|
RethrowErrorHandlerFactory() |
Modifier and Type | Method and Description |
---|---|
ErrorHandler<Action> |
getErrorHandler(InvokationContext<? extends Action> context)
Get an error handler for the current context.
|
void |
handleError(InvokationContext<? extends Action> context,
Action action,
java.lang.String message,
java.lang.Throwable t)
Handle an exception that has happened.
|
setLevel, setRememberLast
public ErrorHandler<Action> getErrorHandler(InvokationContext<? extends Action> context)
ErrorHandlerFactory
getErrorHandler
in interface ErrorHandlerFactory<Action>
getErrorHandler
in class LoggingErrorHandlerFactory
context
- The current invokation context which is an extension
point context (the InvokationContext.getExtension()
method
is expected to return null)public void handleError(InvokationContext<? extends Action> context, Action action, java.lang.String message, java.lang.Throwable t)
ErrorHandler
Note that there are three stages in the extension mechanism, which may cause some of the parameters to be null:
handleError
in interface ErrorHandler<Action>
handleError
in class LoggingErrorHandlerFactory
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