Class DefaultRouteError

  • All Implemented Interfaces:
    org.apache.camel.spi.RouteError

    public class DefaultRouteError
    extends Object
    implements org.apache.camel.spi.RouteError
    • Constructor Detail

      • DefaultRouteError

        public DefaultRouteError​(org.apache.camel.spi.RouteError.Phase phase,
                                 Throwable throwable)
      • DefaultRouteError

        public DefaultRouteError​(org.apache.camel.spi.RouteError.Phase phase,
                                 Throwable throwable,
                                 boolean unhealthy)
    • Method Detail

      • getPhase

        public org.apache.camel.spi.RouteError.Phase getPhase()
        Specified by:
        getPhase in interface org.apache.camel.spi.RouteError
      • getException

        public Throwable getException()
        Specified by:
        getException in interface org.apache.camel.spi.RouteError
      • isUnhealthy

        public boolean isUnhealthy()
        Specified by:
        isUnhealthy in interface org.apache.camel.spi.RouteError
      • set

        public static void set​(org.apache.camel.CamelContext context,
                               String routeId,
                               org.apache.camel.spi.RouteError.Phase phase,
                               Throwable throwable)
      • set

        public static void set​(org.apache.camel.CamelContext context,
                               String routeId,
                               org.apache.camel.spi.RouteError.Phase phase,
                               Throwable throwable,
                               boolean unhealthy)
      • reset

        public static void reset​(org.apache.camel.CamelContext context,
                                 String routeId)