org.apache.camel
Class NoSuchPropertyException

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.NoSuchPropertyException
All Implemented Interfaces:
Serializable

public class NoSuchPropertyException
extends CamelExchangeException

An exception caused when a mandatory property is not available on a message Exchange

Version:
See Also:
ExchangeHelper.getMandatoryProperty(Exchange, String, Class), Serialized Form

Constructor Summary
NoSuchPropertyException(Exchange exchange, String propertyName, Class<?> type)
           
 
Method Summary
 String getPropertyName()
           
 Class<?> getType()
           
protected static String reason(Exchange exchange, String propertyName)
           
 
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

NoSuchPropertyException

public NoSuchPropertyException(Exchange exchange,
                               String propertyName,
                               Class<?> type)
Method Detail

getPropertyName

public String getPropertyName()

getType

public Class<?> getType()

reason

protected static String reason(Exchange exchange,
                               String propertyName)


Apache CAMEL