Class FailedToCreateRouteFromTemplateException

All Implemented Interfaces:
Serializable

public class FailedToCreateRouteFromTemplateException extends RuntimeCamelException
Thrown when the CamelContext fails to instantiate a Route from a route template definition, for example because a required template parameter is missing or the generated route is invalid.

Carries the template id and the target route id to help diagnose which template and instantiation attempt failed.

Since:
3.10
See Also:
  • Constructor Details

    • FailedToCreateRouteFromTemplateException

      public FailedToCreateRouteFromTemplateException(String routeId, String templateId, String message)
      Parameters:
      routeId - the route id that failed to be created
      templateId - the template id used to create the route
      message - the detail message
    • FailedToCreateRouteFromTemplateException

      public FailedToCreateRouteFromTemplateException(String routeId, String templateId, String message, Throwable cause)
      Parameters:
      routeId - the route id that failed to be created
      templateId - the template id used to create the route
      message - the detail message
      cause - the cause of the failure
  • Method Details

    • getTemplateId

      public String getTemplateId()
    • getRouteId

      public String getRouteId()