Package org.apache.camel
Class VetoCamelContextStartException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.camel.VetoCamelContextStartException
- All Implemented Interfaces:
Serializable
An exception to veto starting
CamelContext
.
The option rethrowException can be used to control whether to rethrow this exception when starting CamelContext or
not.- See Also:
-
Constructor Summary
ConstructorDescriptionVetoCamelContextStartException
(String message, Throwable cause, CamelContext context) VetoCamelContextStartException
(String message, Throwable cause, CamelContext context, boolean rethrowException) VetoCamelContextStartException
(String message, CamelContext context) VetoCamelContextStartException
(String message, CamelContext context, boolean rethrowException) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether to rethrow this exception when starting CamelContext, to cause an exception to be thrown from the start method.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
VetoCamelContextStartException
-
VetoCamelContextStartException
public VetoCamelContextStartException(String message, CamelContext context, boolean rethrowException) -
VetoCamelContextStartException
-
VetoCamelContextStartException
public VetoCamelContextStartException(String message, Throwable cause, CamelContext context, boolean rethrowException)
-
-
Method Details
-
getContext
-
isRethrowException
public boolean isRethrowException()Whether to rethrow this exception when starting CamelContext, to cause an exception to be thrown from the start method. This option is default true.
-