Class FailedToStartRouteException

All Implemented Interfaces:
Serializable

public class FailedToStartRouteException extends RuntimeCamelException
Thrown when a previously built Route fails to start as part of the CamelContext startup or a RouteController startRoute call.

Carries the failing routeId and the source location (where available) so error messages can point at the offending DSL. For failures during route construction itself use FailedToCreateRouteException.

See Also:
  • Constructor Details

    • FailedToStartRouteException

      public FailedToStartRouteException(String routeId, String message)
      Parameters:
      routeId - the route id that failed to start
      message - the detail message
    • FailedToStartRouteException

      public FailedToStartRouteException(String routeId, String message, Throwable cause)
      Parameters:
      routeId - the route id that failed to start
      message - the detail message
      cause - the cause of the failure
    • FailedToStartRouteException

      public FailedToStartRouteException(String routeId, @Nullable String location, String message, Throwable cause)
      Parameters:
      routeId - the route id that failed to start
      location - the source location of the route definition, or null if unknown
      message - the detail message
      cause - the cause of the failure
  • Method Details

    • getRouteId

      public String getRouteId()
    • getLocation

      public @Nullable String getLocation()