Class ExpectedBodyTypeException

All Implemented Interfaces:
Serializable

public class ExpectedBodyTypeException extends RuntimeCamelException
Thrown if the body could not be converted to the required type
See Also:
  • Constructor Details

    • ExpectedBodyTypeException

      public ExpectedBodyTypeException(Exchange exchange, Class<?> expectedBodyType)
      Parameters:
      exchange - the exchange that caused the error
      expectedBodyType - the expected body type that could not be extracted
  • Method Details

    • getExchange

      public @Nullable Exchange getExchange()
    • getExpectedBodyType

      public @Nullable Class<?> getExpectedBodyType()