org.apache.camel
Class ExpectedBodyTypeException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.camel.RuntimeCamelException
                  extended by org.apache.camel.ExpectedBodyTypeException
All Implemented Interfaces:
Serializable

public class ExpectedBodyTypeException
extends RuntimeCamelException

Thrown if the body could not be converted to the required type

Version:
See Also:
Serialized Form

Constructor Summary
ExpectedBodyTypeException(Exchange exchange, Class<?> expectedBodyType)
           
 
Method Summary
 Exchange getExchange()
           
 Class<?> getExpectedBodyType()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ExpectedBodyTypeException

public ExpectedBodyTypeException(Exchange exchange,
                                 Class<?> expectedBodyType)
Method Detail

getExchange

public Exchange getExchange()

getExpectedBodyType

public Class<?> getExpectedBodyType()


Apache CAMEL