org.apache.camel
Class VetoCamelContextStartException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
VetoCamelContextStartException(String message, CamelContext context)
           
VetoCamelContextStartException(String message, CamelContext context, boolean rethrowException)
           
VetoCamelContextStartException(String message, Throwable cause, CamelContext context)
           
VetoCamelContextStartException(String message, Throwable cause, CamelContext context, boolean rethrowException)
           
 
Method Summary
 CamelContext getContext()
           
 boolean isRethrowException()
          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
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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.



Apache CAMEL