Class CamelAuthorizationException

All Implemented Interfaces:
Serializable

public class CamelAuthorizationException extends CamelExchangeException
An exception thrown for either authentication or authorization errors occurring in a Camel exchange. Intended to be used when a user is denied an action and Camel should not process the message as a result.
See Also:
  • Constructor Details

    • CamelAuthorizationException

      public CamelAuthorizationException(String message, Exchange exchange)
      Parameters:
      message - the detail message
      exchange - the exchange that caused the error
    • CamelAuthorizationException

      public CamelAuthorizationException(String message, Exchange exchange, Throwable cause)
      Parameters:
      message - the detail message
      exchange - the exchange that caused the error
      cause - the cause of the failure
  • Method Details

    • getPolicyId

      public @Nullable String getPolicyId()