Interface ExceptionPolicyStrategy

    • Method Detail

      • getExceptionPolicy

        ExceptionPolicyKey getExceptionPolicy​(Set<ExceptionPolicyKey> exceptionPolicies,
                                              org.apache.camel.Exchange exchange,
                                              Throwable exception)
        Resolves the ExceptionPolicyKey that should handle the thrown exception.
        Parameters:
        exceptionPolicies - the configured exception policies to resolve from
        exchange - the exchange
        exception - the exception that was thrown
        Returns:
        the resolved exception type to handle this exception, null if none found.