GlobalExceptionHandlerDotNet
GlobalExceptionHandlerDotNet copied to clipboard
Add property to indicate whether the exception has handled or not
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;
});