Class ExceptionPolicyKey


  • public final class ExceptionPolicyKey
    extends Object
    Exception policy key is a compound key for storing: route id + exception class + when => exception type.

    This is used by Camel to store the onException types configured that has or has not predicates attached (when).

    • Constructor Detail

      • ExceptionPolicyKey

        public ExceptionPolicyKey​(String routeId,
                                  Class<? extends Throwable> exceptionClass,
                                  org.apache.camel.Predicate when)
        Key for exception clause
        Parameters:
        routeId - the route, or use null for a global scoped
        exceptionClass - the exception class
        when - optional predicate when the exception clause should trigger
    • Method Detail

      • getExceptionClass

        public Class<?> getExceptionClass()
      • getWhen

        public org.apache.camel.Predicate getWhen()
      • getRouteId

        public String getRouteId()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object