GlobalExceptionHandlerDotNet icon indicating copy to clipboard operation
GlobalExceptionHandlerDotNet copied to clipboard

Add property to indicate whether the exception has handled or not

Open josephwoodward opened this issue 6 years ago • 0 comments

When logging, there would be times where you'd like to know whether the exception was one configured.

Example:

x.OnError((context, exception, httpContext) =>
{
    if (!context.wasCaught){
        _logger.Error(exception.Message);
    }
    return Task.CompletedTask;
});

josephwoodward avatar Nov 14 '18 09:11 josephwoodward