public class CamelExchangeException extends CamelException
Exchange
Constructor and Description |
---|
CamelExchangeException(String message,
Exchange exchange) |
CamelExchangeException(String message,
Exchange exchange,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
static String |
createExceptionMessage(String message,
Exchange exchange,
Throwable cause)
Creates an exception message with the provided details.
|
Exchange |
getExchange()
Returns the exchange which caused the exception
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public Exchange getExchange()
public static String createExceptionMessage(String message, Exchange exchange, Throwable cause)
message
- the messageexchange
- the exchangecause
- the caused exceptionApache Camel