Package org.apache.camel
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
,PropertyBindingException
,ProxyInstantiationException
,ResolveEndpointFailedException
,RuntimeExchangeException
,RuntimeExpressionException
,RuntimeTransformException
,TypeConversionException
,TypeConverterExistsException
,TypeConverterLoaderException
public class RuntimeCamelException extends RuntimeException
Base class for all Camel unchecked exceptions.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RuntimeCamelException()
RuntimeCamelException(String message)
RuntimeCamelException(String message, Throwable cause)
RuntimeCamelException(Throwable cause)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RuntimeCamelException
wrapRuntimeCamelException(Throwable e)
Wraps the caused exception in aRuntimeCamelException
if its not already such an exception.static RuntimeException
wrapRuntimeException(Throwable e)
Wraps the caused exception in aRuntimeCamelException
if its not already a runtime exception.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
wrapRuntimeCamelException
public static RuntimeCamelException wrapRuntimeCamelException(Throwable e)
Wraps the caused exception in aRuntimeCamelException
if its not already such an exception.- Parameters:
e
- the caused exception- Returns:
- the wrapper exception
-
wrapRuntimeException
public static RuntimeException wrapRuntimeException(Throwable e)
Wraps the caused exception in aRuntimeCamelException
if its not already a runtime exception.- Parameters:
e
- the caused exception- Returns:
- the wrapper exception
-
-