|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.camel.impl.ServiceSupport
org.apache.camel.processor.ErrorHandlerSupport
public abstract class ErrorHandlerSupport
Support class for ErrorHandler implementations.
| Constructor Summary | |
|---|---|
ErrorHandlerSupport()
|
|
| Method Summary | |
|---|---|
void |
addExceptionPolicy(OnExceptionDefinition exceptionType)
|
static ExceptionPolicyStrategy |
createDefaultExceptionPolicyStrategy()
Creates the default exception policy strategy to use. |
protected boolean |
customProcessorForException(Exchange exchange,
Throwable exception)
Attempts to invoke the handler for this particular exception if one is available |
protected OnExceptionDefinition |
getExceptionPolicy(Exchange exchange,
Throwable exception)
Attempts to find the best suited OnExceptionDefinition to be used for handling the given thrown exception. |
void |
setExceptionPolicy(ExceptionPolicyStrategy exceptionPolicy)
Sets the strategy to use for resolving the OnExceptionDefinition to use
for handling thrown exceptions. |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
|---|
addChildService, doStart, doStop, getStatus, getThreadName, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, nextThreadCounter, notStarting, removeChildService, start, stop |
| 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.Processor |
|---|
process |
| Constructor Detail |
|---|
public ErrorHandlerSupport()
| Method Detail |
|---|
public void addExceptionPolicy(OnExceptionDefinition exceptionType)
protected boolean customProcessorForException(Exchange exchange,
Throwable exception)
throws Exception
Exception
protected OnExceptionDefinition getExceptionPolicy(Exchange exchange,
Throwable exception)
OnExceptionDefinition to be used for handling the given thrown exception.
exchange - the exchangeexception - the exception that was thrown
public void setExceptionPolicy(ExceptionPolicyStrategy exceptionPolicy)
OnExceptionDefinition to use
for handling thrown exceptions.
public static ExceptionPolicyStrategy createDefaultExceptionPolicyStrategy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||