Beispiel #1
0
 private static void MaybeNoteException(Exception e, ExceptionLocation l, object o)
 {
     if (NoteException != null)
     {
         try
         {
             NoteException(e, l, o);
         }
         catch { }
     }
 }
 /// <summary>
 /// Creates a new instance of the context object.
 /// </summary>
 /// <param name="context">The HTTP request context</param>
 /// <param name="options">The middleware options</param>
 /// <param name="location">The location of the exception</param>
 /// <param name="exception">The exception thrown.</param>
 /// <param name="ticket">The current ticket, if any.</param>
 public CookieExceptionContext(
     HttpContext context,
     CookieAuthenticationOptions options,
     ExceptionLocation location,
     Exception exception,
     AuthenticationTicket ticket)
     : base(context, options)
 {
     Location  = location;
     Exception = exception;
     Rethrow   = true;
     Ticket    = ticket;
 }
Beispiel #3
0
 public ClientExceptionEventArgs(Exception ex, ExceptionLocation el)
 {
     ErrorException = ex;
     Location = el;
 }