Class RuntimeCamelException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.camel.RuntimeCamelException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AlreadyStoppedException, ExpectedBodyTypeException, ExpressionEvaluationException, ExpressionIllegalSyntaxException, FailedToCreateConsumerException, FailedToCreateProducerException, FailedToCreateRouteException, FailedToCreateRouteFromTemplateException, FailedToStartComponentException, FailedToStartRouteException, InvalidPropertyException, NoSuchBeanException, NoSuchEndpointException, NoSuchLanguageException, NoSuchServiceException, PropertyBindingException, ProxyInstantiationException, ResolveEndpointFailedException, RuntimeExchangeException, RuntimeExpressionException, RuntimeTransformException, TypeConversionException, TypeConverterExistsException, TypeConverterLoaderException
Base class for all unchecked exceptions thrown by Camel itself.
Used by Camel when it cannot propagate a checked
Exception through an API that does not declare one (for
example inside a Processor chain). The static wrapRuntimeCamelException(Throwable) and
wrapRuntimeException(Throwable) helpers preserve the original cause unchanged when it is already unchecked,
so wrapping a Throwable from a unit of work is idempotent.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeCamelException(@Nullable String message) RuntimeCamelException(@Nullable String message, @Nullable Throwable cause) RuntimeCamelException(@Nullable Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeCamelExceptionWraps the caused exception in aRuntimeCamelExceptionif its not already such an exception.static RuntimeExceptionWraps the caused exception in aRuntimeCamelExceptionif its not already a runtime exception.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RuntimeCamelException
public RuntimeCamelException() -
RuntimeCamelException
- Parameters:
message- the detail message
-
RuntimeCamelException
-
RuntimeCamelException
- Parameters:
cause- the cause of the failure
-
-
Method Details
-
wrapRuntimeCamelException
Wraps the caused exception in aRuntimeCamelExceptionif its not already such an exception.- Parameters:
e- the caused exception- Returns:
- the wrapper exception
-
wrapRuntimeException
Wraps the caused exception in aRuntimeCamelExceptionif its not already a runtime exception.- Parameters:
e- the caused exception- Returns:
- the wrapper exception
-