Using this library, you can make use of different exception handling mechanisms.
License
—
Deps
1
Install Size
—
Vulns
✓ 0
Published
Feb 26, 2026
$ dotnet add package Jinget.ExceptionHandlerUsing this library, you can make use of different exception handling mechanisms.
Download the package from NuGet using Package Manager:
Install-Package Jinget.ExceptionHandler
You can also use other methods supported by NuGet. Check Here for more information.
Call builder.Services.ConfigureJingetExceptionHandler() to add required services to DI container. Calling this method requires to pass an object of BaseSettingModel which is consists of following properties:
UseGlobalExceptionHandler: If set to true then global exception handler will be used which in turn will rewrite the exception response output.
Handle4xxResponses: If set to true then http request exception handler will be used which in turn will handle the 4xx responses.
After registering the required services, you need to call app.UseJingetExceptionHandler() method to add exception handler middleware to your request pipeline.
Note: If you are using Jinget.Logger then you do not need to do anything and exception handling is by default set by this package.
In order to install Jinget ExceptionHandler please refer to nuget.org
👨💻 Twitter: https://twitter.com/_jinget
📧 Email: farahmandian2011@gmail.com
📣 Instagram: https://www.instagram.com/vahidfarahmandian