/// <summary> /// Called when an exception occurred during event handling by a subscriber. /// </summary> /// <param name="eventTopic">The event topic.</param> /// <param name="exception">The exception.</param> /// <param name="context">The context providing information whether the exception is handled by an extension or is re-thrown.</param> public override void SubscriberExceptionOccurred(IEventTopicInfo eventTopic, Exception exception, ExceptionHandlingContext context) { Debug.WriteLine( "An exception was thrown during handling the topic '{0}': {1}", eventTopic.Uri, exception); exception.PreserveStackTrace(); throw exception; }
private void ProcessReadException(Exception exc) { Debug.Assert(ReadException == null); Log.Error(exc); ReadException = exc; ReadException.PreserveStackTrace(); }