com.rabbitmq.client.impl
Class DefaultExceptionHandler
java.lang.Object
com.rabbitmq.client.impl.DefaultExceptionHandler
- All Implemented Interfaces:
- ExceptionHandler
public class DefaultExceptionHandler
- extends java.lang.Object
- implements ExceptionHandler
Method Summary |
void |
handleConsumerException(Channel channel,
java.lang.Throwable exception,
Consumer consumer,
java.lang.String consumerTag,
java.lang.String methodName)
Perform any required exception processing for the situation
when the driver thread for the connection has called a method
on a Consumer, and that method has thrown an exception. |
void |
handleReturnListenerException(Channel channel,
java.lang.Throwable exception)
Perform any required exception processing for the situation
when the driver thread for the connection has called a
ReturnListener's handleBasicReturn method, and that method has
thrown an exception. |
void |
handleUnexpectedConnectionDriverException(Connection conn,
java.lang.Throwable exception)
Perform any required exception processing for the situation
when the driver thread for the connection has an exception
signalled to it that it can't otherwise deal with. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultExceptionHandler
public DefaultExceptionHandler()
handleUnexpectedConnectionDriverException
public void handleUnexpectedConnectionDriverException(Connection conn,
java.lang.Throwable exception)
- Description copied from interface:
ExceptionHandler
- Perform any required exception processing for the situation
when the driver thread for the connection has an exception
signalled to it that it can't otherwise deal with.
- Specified by:
handleUnexpectedConnectionDriverException
in interface ExceptionHandler
- Parameters:
conn
- the Connection that caught the exceptionexception
- the exception caught in the driver thread
handleReturnListenerException
public void handleReturnListenerException(Channel channel,
java.lang.Throwable exception)
- Description copied from interface:
ExceptionHandler
- Perform any required exception processing for the situation
when the driver thread for the connection has called a
ReturnListener's handleBasicReturn method, and that method has
thrown an exception.
- Specified by:
handleReturnListenerException
in interface ExceptionHandler
- Parameters:
channel
- the ChannelN that held the ReturnListenerexception
- the exception thrown by ReturnListener.handleBasicReturn
handleConsumerException
public void handleConsumerException(Channel channel,
java.lang.Throwable exception,
Consumer consumer,
java.lang.String consumerTag,
java.lang.String methodName)
- Description copied from interface:
ExceptionHandler
- Perform any required exception processing for the situation
when the driver thread for the connection has called a method
on a Consumer, and that method has thrown an exception.
- Specified by:
handleConsumerException
in interface ExceptionHandler
- Parameters:
channel
- the ChannelN that held the Consumerexception
- the exception thrown by the Consumerconsumer
- the Consumer that caused the faultconsumerTag
- the Consumer's consumerTagmethodName
- the name of the method on the Consumer that threw the exception