org.apache.camel
Class CamelAuthorizationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.camel.CamelException
              extended by org.apache.camel.CamelExchangeException
                  extended by org.apache.camel.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.

Version:
See Also:
Serialized Form

Constructor Summary
CamelAuthorizationException(String message, Exchange exchange)
           
CamelAuthorizationException(String message, Exchange exchange, Throwable cause)
           
 
Method Summary
 String getPolicyId()
           
 
Methods inherited from class org.apache.camel.CamelExchangeException
createExceptionMessage, getExchange
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CamelAuthorizationException

public CamelAuthorizationException(String message,
                                   Exchange exchange)

CamelAuthorizationException

public CamelAuthorizationException(String message,
                                   Exchange exchange,
                                   Throwable cause)
Method Detail

getPolicyId

public String getPolicyId()


Apache CAMEL