Class InvalidPayloadException

All Implemented Interfaces:
Serializable

public class InvalidPayloadException extends CamelExchangeException
Is thrown if the payload from the exchange could not be retrieved because of being null, wrong class type etc.
See Also:
  • Constructor Details

    • InvalidPayloadException

      public InvalidPayloadException(Exchange exchange, Class<?> type)
    • InvalidPayloadException

      public InvalidPayloadException(Exchange exchange, Class<?> type, Message message)
    • InvalidPayloadException

      public InvalidPayloadException(Exchange exchange, Class<?> type, Message message, Throwable cause)
  • Method Details

    • getType

      public Class<?> getType()
      The expected type of the body