Package org.apache.camel
Class VetoCamelContextStartException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.camel.VetoCamelContextStartException
-
- All Implemented Interfaces:
Serializable
public class VetoCamelContextStartException extends Exception
An exception to veto startingCamelContext. The option rethrowException can be used to control whether to rethrow this exception when starting CamelContext or not.- See Also:
LifecycleStrategy, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description VetoCamelContextStartException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CamelContextgetContext()booleanisRethrowException()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 Detail
-
VetoCamelContextStartException
public VetoCamelContextStartException(String message, CamelContext context)
-
VetoCamelContextStartException
public VetoCamelContextStartException(String message, CamelContext context, boolean rethrowException)
-
VetoCamelContextStartException
public VetoCamelContextStartException(String message, Throwable cause, CamelContext context)
-
VetoCamelContextStartException
public VetoCamelContextStartException(String message, Throwable cause, CamelContext context, boolean rethrowException)
-
-
Method Detail
-
getContext
public CamelContext 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.
-
-