The NMS Class Library (.Net Messaging Library)

TransportFilter.OnException Method 

protected virtual void OnException(
   ITransport sender,
   Exception command
);

See Also

TransportFilter Class | ActiveMQ.Transport Namespace