Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Event"/> class.
        /// </summary>
        /// <param name="exception">The exception to report on</param>
        /// <param name="runtimeEnding">True if the runtime is ending otherwise false</param>
        protected Event(Exception exception, bool runtimeEnding, HandledState handledState, int skippedFrames)
        {
            HandledState = handledState;
            // Record a full notify stack trace if the exception has none (ignoring the first constructor stack frame)
            if (exception == null || exception.StackTrace == null)
            {
                CallTrace = new StackTrace(skippedFrames, true);
            }

            Intialise(exception, runtimeEnding);
        }
Beispiel #2
0
 public void Notify(System.Exception exception, Middleware callback)
 {
     Notify(exception, HandledState.ForHandledException(), callback);
 }
Beispiel #3
0
        public void Notify(System.Exception exception, HandledState handledState, Middleware callback)
        {
            var report = new Report(_configuration, exception, handledState, Breadcrumbs.Retrieve().ToArray(), SessionTracking.CurrentSession);

            Notify(report, callback);
        }
Beispiel #4
0
 public void Notify(System.Exception exception, HandledState handledState)
 {
     Notify(exception, handledState, null);
 }
Beispiel #5
0
 public void Notify(System.Exception exception, Severity severity, Middleware callback)
 {
     Notify(exception, HandledState.ForUserSpecifiedSeverity(severity), callback);
 }
Beispiel #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Event"/> class.
 /// </summary>
 /// <param name="exception">The exception to report on</param>
 /// <param name="runtimeEnding">True if the runtime is ending otherwise false</param>
 public Event(Exception exception, bool runtimeEnding, HandledState handledState)
     : this(exception, runtimeEnding, handledState, 2)
 {
 }