Class FailedToCreateRouteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.camel.RuntimeCamelException
org.apache.camel.FailedToCreateRouteException
- All Implemented Interfaces:
Serializable
Thrown when Camel cannot build a
Route from a RoutesBuilder or route model, for example because an
Endpoint cannot be resolved, a referenced bean or processor is missing, or DSL validation fails.
Distinct from FailedToStartRouteException, which signals that a successfully built route failed during the
start phase of the CamelContext lifecycle.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFailedToCreateRouteException(String routeId, @Nullable String location, String route, String cause) FailedToCreateRouteException(String routeId, @Nullable String location, String route, String at, Throwable cause) FailedToCreateRouteException(String routeId, @Nullable String location, String route, Throwable cause) -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringgetExceptionMessage(Throwable cause) @Nullable String@Nullable Stringprotected static StringgetRouteMessage(String route) Methods inherited from class RuntimeCamelException
wrapRuntimeCamelException, wrapRuntimeExceptionMethods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
FailedToCreateRouteException
- Parameters:
cause- a description of why route creation failed
-
FailedToCreateRouteException
public FailedToCreateRouteException(String routeId, @Nullable String location, String route, String cause) - Parameters:
routeId- the ID of the route that failed to be createdlocation- the source location of the route definition, ornullif unknownroute- the route definition stringcause- the error message describing why route creation failed
-
FailedToCreateRouteException
public FailedToCreateRouteException(String routeId, @Nullable String location, String route, Throwable cause) - Parameters:
routeId- the ID of the route that failed to be createdlocation- the source location of the route definition, ornullif unknownroute- the route definition stringcause- the cause of the failure
-
FailedToCreateRouteException
public FailedToCreateRouteException(String routeId, @Nullable String location, String route, String at, Throwable cause) - Parameters:
routeId- the ID of the route that failed to be createdlocation- the source location of the route definition, ornullif unknownroute- the route definition stringat- the location in the route definition where the error occurredcause- the cause of the failure
-
-
Method Details
-
getRouteId
-
getLocation
-
getExceptionMessage
-
getRouteMessage
-