public class ThrowExceptionProcessor
extends org.apache.camel.support.AsyncProcessorSupport
implements org.apache.camel.Traceable, org.apache.camel.spi.IdAware, org.apache.camel.CamelContextAware
Exception on the Exchange| Constructor and Description |
|---|
ThrowExceptionProcessor(Exception exception) |
ThrowExceptionProcessor(Exception exception,
Class<? extends Exception> type,
String message) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
org.apache.camel.CamelContext |
getCamelContext() |
Exception |
getException() |
String |
getId() |
String |
getMessage() |
String |
getTraceLabel() |
Class<? extends Exception> |
getType() |
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
void |
setCamelContext(org.apache.camel.CamelContext camelContext) |
void |
setId(String id) |
String |
toString() |
build, doBuild, doInit, doResume, doShutdown, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic ThrowExceptionProcessor(Exception exception)
public boolean process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
process in interface org.apache.camel.AsyncProcessorpublic String getTraceLabel()
getTraceLabel in interface org.apache.camel.Traceablepublic String getId()
getId in interface org.apache.camel.spi.HasIdpublic void setId(String id)
setId in interface org.apache.camel.spi.IdAwarepublic Exception getException()
public String getMessage()
public org.apache.camel.CamelContext getCamelContext()
getCamelContext in interface org.apache.camel.CamelContextAwarepublic void setCamelContext(org.apache.camel.CamelContext camelContext)
setCamelContext in interface org.apache.camel.CamelContextAwareprotected void doStart()
throws Exception
doStart in class org.apache.camel.support.AsyncProcessorSupportExceptionApache Camel