|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.camel.builder.ErrorHandlerBuilderSupport
public abstract class ErrorHandlerBuilderSupport
Base class for builders of error handling.
Constructor Summary | |
---|---|
ErrorHandlerBuilderSupport()
|
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. |
ErrorHandlerBuilderSupport |
exceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy)
Sets the exception policy to use |
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.camel.builder.ErrorHandlerBuilder |
---|
createErrorHandler, supportTransacted |
Constructor Detail |
---|
public ErrorHandlerBuilderSupport()
Method Detail |
---|
public void addErrorHandlers(OnExceptionDefinition exception)
ErrorHandlerBuilder
addErrorHandlers
in interface ErrorHandlerBuilder
exception
- the exception to handlepublic void configure(ErrorHandler handler)
ErrorHandlerBuilder
configure
in interface ErrorHandlerBuilder
handler
- the other error handlerpublic List<OnExceptionDefinition> getErrorHandlers()
ErrorHandlerBuilder
getErrorHandlers
in interface ErrorHandlerBuilder
public void setErrorHandlers(List<OnExceptionDefinition> exceptions)
ErrorHandlerBuilder
setErrorHandlers
in interface ErrorHandlerBuilder
exceptions
- the list of exceptions to handlepublic ErrorHandlerBuilderSupport exceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy)
public ExceptionPolicyStrategy getExceptionPolicyStrategy()
ErrorHandlerBuilder
getExceptionPolicyStrategy
in interface ErrorHandlerBuilder
public void setExceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy)
ErrorHandlerBuilder
OnExceptionDefinition
to use for a given thrown exception
setExceptionPolicyStrategy
in interface ErrorHandlerBuilder
exceptionPolicyStrategy
- the exception policy strategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |