org.apache.camel
Class NoSuchHeaderException

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

public class NoSuchHeaderException
extends CamelExchangeException

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

Version:
$Revision: 12770 $
See Also:
ExchangeHelper.getMandatoryHeader(Exchange, String, Class), Serialized Form

Constructor Summary
NoSuchHeaderException(Exchange exchange, String headerName, Class<?> type)
           
 
Method Summary
 String getHeaderName()
           
 Class<?> getType()
           
protected static String reason(Exchange exchange, String propertyName)
           
 
Methods inherited from class org.apache.camel.CamelExchangeException
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

NoSuchHeaderException

public NoSuchHeaderException(Exchange exchange,
                             String headerName,
                             Class<?> type)
Method Detail

getHeaderName

public String getHeaderName()

getType

public Class<?> getType()

reason

protected static String reason(Exchange exchange,
                               String propertyName)


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.