Class NoSuchAttachmentException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.camel.CamelException
org.apache.camel.CamelExchangeException
org.apache.camel.attachment.NoSuchAttachmentException
All Implemented Interfaces:
Serializable

public class NoSuchAttachmentException extends org.apache.camel.CamelExchangeException
An exception caused when a mandatory attachment is not available on a message Exchange
See Also:
  • ExchangeHelper.getMandatoryProperty(Exchange, String, Class)
  • Serialized Form
  • Constructor Details

    • NoSuchAttachmentException

      public NoSuchAttachmentException(org.apache.camel.Exchange exchange, String attachmentName)
    • NoSuchAttachmentException

      public NoSuchAttachmentException(org.apache.camel.Exchange exchange, String attachmentName, Class<?> type)
  • Method Details

    • getAttachmentName

      public String getAttachmentName()
    • getType

      public Class<?> getType()
    • reason

      protected static String reason(org.apache.camel.Exchange exchange, String propertyName)