Class CamelException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CamelExchangeException, LoadPropertiesException, NoTypeConversionAvailableException

public class CamelException extends Exception
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 Details

    • CamelException

      public CamelException()
    • CamelException

      public CamelException(@Nullable String message)
      Parameters:
      message - the detail message
    • CamelException

      public CamelException(@Nullable String message, @Nullable Throwable cause)
      Parameters:
      message - the detail message
      cause - the cause of the failure
    • CamelException

      public CamelException(@Nullable Throwable cause)
      Parameters:
      cause - the cause of the failure