Esempio n. 1
0
 internal void OnException(Exception ex)
 {
     Apache.NMS.ExceptionListener listener = this.ExceptionListener;
     if (listener != null)
     {
         ExceptionNotification en = new ExceptionNotification(this, ex);
         this.ExceptionExecutor.Enqueue(en);
     }
 }
Esempio n. 2
0
 protected void DispatchException(Exception ex)
 {
     Apache.NMS.ExceptionListener listener = this.ExceptionListener;
     if (listener != null)
     {
         // Wrap does nothing if this is already a NMS exception, otherwise
         // wrap it appropriately.
         listener(ExceptionSupport.Wrap(ex));
     }
     else
     {
         Tracer.WarnFormat("Received Async exception. Type {0} Message {1}", ex.GetType().Name, ex.Message);
         Tracer.DebugFormat("Async Exception Stack {0}", ex);
     }
 }