public class DefaultRouteError extends Object implements RouteError
RouteError.Phase| Constructor and Description |
|---|
DefaultRouteError(RouteError.Phase phase,
Throwable throwable) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getException()
Gets the error.
|
RouteError.Phase |
getPhase()
Gets the phase associated with the error.
|
static void |
reset(CamelContext context,
String routeId) |
static void |
set(CamelContext context,
String routeId,
RouteError.Phase phase,
Throwable throwable) |
String |
toString() |
public DefaultRouteError(RouteError.Phase phase, Throwable throwable)
public RouteError.Phase getPhase()
RouteErrorgetPhase in interface RouteErrorpublic Throwable getException()
RouteErrorgetException in interface RouteErrorpublic static void set(CamelContext context, String routeId, RouteError.Phase phase, Throwable throwable)
public static void reset(CamelContext context, String routeId)
Apache Camel