internal void OnException(Exception ex) { Apache.NMS.ExceptionListener listener = this.ExceptionListener; if (listener != null) { ExceptionNotification en = new ExceptionNotification(this, ex); this.ExceptionExecutor.Enqueue(en); } }
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); } }