Class CamelException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.camel.CamelException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CamelExchangeException, LoadPropertiesException, NoTypeConversionAvailableException
Base class for all Camel checked exceptions, typically thrown from a
Processor or other lifecycle step
that already declares throws Exception.
Prefer RuntimeCamelException (or one of its subclasses such as CamelExchangeException) for failures
raised across API boundaries that do not declare a checked throws clause.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCamelException(@Nullable String message) CamelException(@Nullable String message, @Nullable Throwable cause) CamelException(@Nullable Throwable cause) -
Method Summary
Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
CamelException
public CamelException() -
CamelException
- Parameters:
message- the detail message
-
CamelException
-
CamelException
- Parameters:
cause- the cause of the failure
-