public class CatchProcessor
extends org.apache.camel.support.processor.DelegateAsyncProcessor
implements org.apache.camel.Traceable, org.apache.camel.spi.IdAware
Constructor and Description |
---|
CatchProcessor(List<Class<? extends Throwable>> exceptions,
org.apache.camel.Processor processor,
org.apache.camel.Predicate onWhen,
org.apache.camel.Predicate handled) |
Modifier and Type | Method and Description |
---|---|
protected Throwable |
catches(org.apache.camel.Exchange exchange,
Throwable exception)
Returns with the exception that is caught by this processor.
|
List<Class<? extends Throwable>> |
getExceptions() |
String |
getId() |
String |
getTraceLabel() |
protected boolean |
matchesWhen(org.apache.camel.Exchange exchange)
Strategy method for matching the exception type with the current exchange.
|
boolean |
process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback) |
void |
setId(String id) |
String |
toString() |
doShutdown, doStart, doStop, getProcessor, hasNext, next, setProcessor, setProcessor
doInit, doResume, doSuspend, getStatus, init, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
public String toString()
toString
in class org.apache.camel.support.processor.DelegateAsyncProcessor
public String getId()
getId
in interface org.apache.camel.spi.HasId
public void setId(String id)
setId
in interface org.apache.camel.spi.IdAware
public String getTraceLabel()
getTraceLabel
in interface org.apache.camel.Traceable
public boolean process(org.apache.camel.Exchange exchange, org.apache.camel.AsyncCallback callback)
process
in interface org.apache.camel.AsyncProcessor
process
in class org.apache.camel.support.processor.DelegateAsyncProcessor
protected Throwable catches(org.apache.camel.Exchange exchange, Throwable exception)
exchange
- the current exchangeexception
- the thrown exceptionprotected boolean matchesWhen(org.apache.camel.Exchange exchange)
exchange
- the current Exchange
Apache Camel