|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ErrorHandlerBuilder
A builder of a Error Handler
| Method Summary | |
|---|---|
void |
addErrorHandlers(OnExceptionDefinition exception)
Adds error handler for the given exception type |
void |
configure(ErrorHandler handler)
Configures the other error handler based on this error handler. |
Processor |
createErrorHandler(RouteContext routeContext,
Processor processor)
Creates the error handler interceptor |
List<OnExceptionDefinition> |
getErrorHandlers()
Gets the error handlers |
ExceptionPolicyStrategy |
getExceptionPolicyStrategy()
Gets the exception policy strategy |
void |
setErrorHandlers(List<OnExceptionDefinition> exceptions)
Adds the error handlers for the given list of exception types |
void |
setExceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy)
Sets the exception policy strategy to use for resolving the OnExceptionDefinition
to use for a given thrown exception |
boolean |
supportTransacted()
Whether this error handler supports transacted exchanges. |
| Method Detail |
|---|
Processor createErrorHandler(RouteContext routeContext,
Processor processor)
throws Exception
routeContext - the route contextprocessor - the outer processor
Exception - is thrown if the error handler could not be createdvoid addErrorHandlers(OnExceptionDefinition exception)
exception - the exception to handlevoid setErrorHandlers(List<OnExceptionDefinition> exceptions)
exceptions - the list of exceptions to handleList<OnExceptionDefinition> getErrorHandlers()
ExceptionPolicyStrategy getExceptionPolicyStrategy()
void setExceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy)
OnExceptionDefinition
to use for a given thrown exception
exceptionPolicyStrategy - the exception policy strategyboolean supportTransacted()
void configure(ErrorHandler handler)
handler - the other error handler
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||