public interface ExceptionPolicyStrategy
OnExceptionDefinition
should handle the thrown
exception.DefaultExceptionPolicy
Modifier and Type | Method and Description |
---|---|
OnExceptionDefinition |
getExceptionPolicy(Map<ExceptionPolicyKey,OnExceptionDefinition> exceptionPolicies,
Exchange exchange,
Throwable exception)
Resolves the
OnExceptionDefinition that should handle the thrown exception. |
OnExceptionDefinition getExceptionPolicy(Map<ExceptionPolicyKey,OnExceptionDefinition> exceptionPolicies, Exchange exchange, Throwable exception)
OnExceptionDefinition
that should handle the thrown exception.exceptionPolicies
- the configured exception policies to resolve fromexchange
- the exchangeexception
- the exception that was thrownApache Camel