/// <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); }
public void Notify(System.Exception exception, Middleware callback) { Notify(exception, HandledState.ForHandledException(), callback); }
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); }
public void Notify(System.Exception exception, HandledState handledState) { Notify(exception, handledState, null); }
public void Notify(System.Exception exception, Severity severity, Middleware callback) { Notify(exception, HandledState.ForUserSpecifiedSeverity(severity), callback); }
/// <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) { }