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 starting CamelContext
.
The option rethrowException can be used to control whether to rethrow this exception
when starting CamelContext or not.
- See Also:
LifecycleStrategy
,
Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
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)
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.
Apache Camel