Package org.apache.camel.spi
Interface RouteError
-
public interface RouteErrorThe last error that happened during changing the route lifecycle, i.e. such as when an exception was thrown during starting the route. This is only errors for route lifecycle changes, it is not exceptions thrown during routing messsages with the Camel routing engine.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRouteError.Phase
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ThrowablegetException()Gets the error.RouteError.PhasegetPhase()Gets the phase associated with the error.booleanisUnhealthy()Whether the route is regarded as unhealthy.
-
-
-
Method Detail
-
getPhase
RouteError.Phase getPhase()
Gets the phase associated with the error.- Returns:
- the phase.
-
getException
Throwable getException()
Gets the error.- Returns:
- the error.
-
isUnhealthy
boolean isUnhealthy()
Whether the route is regarded as unhealthy.
-
-