Class ExceptionPolicyKey

java.lang.Object
org.apache.camel.processor.errorhandler.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 Details

    • 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 Details

    • getExceptionClass

      public Class<?> getExceptionClass()
    • getWhen

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

      public String getRouteId()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object