Class NoSuchHeaderException

All Implemented Interfaces:
Serializable

public class NoSuchHeaderException extends CamelExchangeException
An exception caused when a mandatory header is not available on a message Exchange
See Also:
  • invalid reference
    org.apache.camel.support.ExchangeHelper#getMandatoryHeader(Exchange, String, Class)
  • Serialized Form
  • Constructor Details

    • NoSuchHeaderException

      public NoSuchHeaderException(String message, Exchange exchange, String headerName)
    • NoSuchHeaderException

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

    • getHeaderName

      public String getHeaderName()
    • getType

      public Class<?> getType()
    • reason

      protected static String reason(Exchange exchange, String headerName)