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:
  • Constructor Details

    • 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 Details

    • 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.