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, setProcessorbuild, doBuild, doInit, doResume, doSuspend, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic String toString()
toString in class org.apache.camel.support.processor.DelegateAsyncProcessorpublic String getId()
getId in interface org.apache.camel.spi.HasIdpublic void setId(String id)
setId in interface org.apache.camel.spi.IdAwarepublic String getTraceLabel()
getTraceLabel in interface org.apache.camel.Traceablepublic boolean process(org.apache.camel.Exchange exchange,
org.apache.camel.AsyncCallback callback)
process in interface org.apache.camel.AsyncProcessorprocess in class org.apache.camel.support.processor.DelegateAsyncProcessorprotected 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 ExchangeApache Camel