GlobalExceptionHandlerDotNet icon indicating copy to clipboard operation
GlobalExceptionHandlerDotNet copied to clipboard

Exception handling as a convention in the ASP.NET Core request pipeline

Results 14 GlobalExceptionHandlerDotNet issues
Sort by recently updated
recently updated
newest added

Bumps [Newtonsoft.Json](https://github.com/JamesNK/Newtonsoft.Json) from 12.0.2 to 13.0.1. Release notes Sourced from Newtonsoft.Json's releases. 13.0.1 New feature - Add JsonSelectSettings with configuration for a regex timeout Change - Remove portable assemblies from...

dependencies

Hello How can I handle the exceptions deliberately thrown from the controller using MediatR in UT cases Ex: This code snippet expects an ArgumentException from the controller side `command.CustomerProfileId =...

Was v5 never released? I need the logging fix.

dotnet version : .net 5 os : windows when i raise new custome exception in my ctor of webapi in my project ,app.UseGlobalExceptionHandler can not handle exception here is my...

I am trying to install the version 4.0.3 from nuget but seems like it's not published yet

```csharp builder.UseGlobalExceptionHandler( x => { x.ContentType = "application/json"; x.ResponseBody(s => JsonConvert.SerializeObject(new { Message = "An error occurred whilst processing your request" })); x.Map().ToStatusCode(HttpStatusCode.NotFound); }); ``` Having this configuration and throwing...

Is there anyway to redirect exceptions to custom error page?

I would like to scan the Implement classes of the interface `IException` that I defined to custom `StatusCode` in GlobalExceptionHandler, but with generic version of `Map()`, I had to use...

Would it be possible to enable content negotiation for `.ResponseBody()` as well? It seems only possible now through `.Map().WithBody()` Thanks

When logging, there would be times where you'd like to know whether the exception was one configured. Example: ```csharp x.OnError((context, exception, httpContext) => { if (!context.wasCaught){ _logger.Error(exception.Message); } return Task.CompletedTask;...

Jump In