org.eclipse.swordfish.core
Interface InterceptorExceptionListener


public interface InterceptorExceptionListener

Provides error handling logic. Can be plugged into the Swordfish framework as an osgi service to receive asynchronous notifications about exception thrown during interceptor chain invocation should implement current interface and register implementation class as OSGI service with name "org.eclipse.swordfish.api.InterceptorExceptionListener"


Method Summary
 void handle(java.lang.Exception exception, javax.jbi.messaging.MessageExchange exchange, Interceptor interceptor)
          invoked each time exception thrown inside org.eclipse.swordfish.api.Interceptor.process(MessageExchange exchange) method
 

Method Detail

handle

void handle(java.lang.Exception exception,
            javax.jbi.messaging.MessageExchange exchange,
            Interceptor interceptor)
invoked each time exception thrown inside org.eclipse.swordfish.api.Interceptor.process(MessageExchange exchange) method

Parameters:
exception - - the thrown exception to be handled
exchange - - the messageExchange that caused the processing error
interceptor - - that threw the exception