|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ErrorHandlerBuilderexception - the exception to handlepublic void configure(ErrorHandler handler)
ErrorHandlerBuilder
configure in interface ErrorHandlerBuilderhandler - the other error handlerpublic List<OnExceptionDefinition> getErrorHandlers()
ErrorHandlerBuilder
getErrorHandlers in interface ErrorHandlerBuilderpublic void setErrorHandlers(List<OnExceptionDefinition> exceptions)
ErrorHandlerBuilder
setErrorHandlers in interface ErrorHandlerBuilderexceptions - the list of exceptions to handlepublic ErrorHandlerBuilderSupport exceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy)
public ExceptionPolicyStrategy getExceptionPolicyStrategy()
ErrorHandlerBuilder
getExceptionPolicyStrategy in interface ErrorHandlerBuilderpublic void setExceptionPolicyStrategy(ExceptionPolicyStrategy exceptionPolicyStrategy)
ErrorHandlerBuilderOnExceptionDefinition
to use for a given thrown exception
setExceptionPolicyStrategy in interface ErrorHandlerBuilderexceptionPolicyStrategy - the exception policy strategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||