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:
    Serialized Form
    • Constructor Detail

      • InvalidPayloadException

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

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

      • getType

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