Jinget.ExceptionHandler
8.0.0-preview005
Prefix Reserved
See the version list below for details.
dotnet add package Jinget.ExceptionHandler --version 8.0.0-preview005
NuGet\Install-Package Jinget.ExceptionHandler -Version 8.0.0-preview005
<PackageReference Include="Jinget.ExceptionHandler" Version="8.0.0-preview005" />
paket add Jinget.ExceptionHandler --version 8.0.0-preview005
#r "nuget: Jinget.ExceptionHandler, 8.0.0-preview005"
// Install Jinget.ExceptionHandler as a Cake Addin #addin nuget:?package=Jinget.ExceptionHandler&version=8.0.0-preview005&prerelease // Install Jinget.ExceptionHandler as a Cake Tool #tool nuget:?package=Jinget.ExceptionHandler&version=8.0.0-preview005&prerelease
Jinget ExceptionHandler
Using this library, you can make use of different exception handling mechanisms.
How to Use:
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.
Configuration
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.
How to install
In order to install Jinget ExceptionHandler please refer to nuget.org
Contact Me
👨💻 Twitter: https://twitter.com/_jinget
📧 Email: farahmandian2011@gmail.com
📣 Instagram: https://www.instagram.com/vahidfarahmandian
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net8.0
- Jinget.Core (>= 8.0.0-preview005)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Microsoft.Extensions.Hosting.Abstractions (>= 8.0.1)
- Microsoft.Extensions.Logging.Abstractions (>= 8.0.2)
- Newtonsoft.Json (>= 13.0.3)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Jinget.ExceptionHandler:
Package | Downloads |
---|---|
Jinget.Logger
Using this library, you can easily save your application logs in ElasticSearch database or files. |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.0-preview007 | 76 | 11/11/2024 |
8.0.0-preview006 | 62 | 11/2/2024 |
8.0.0-preview005 | 45 | 11/2/2024 |
8.0.0-preview004 | 47 | 11/1/2024 |
8.0.0-preview003 | 50 | 11/1/2024 |
8.0.0-preview002 | 50 | 11/1/2024 |
8.0.0-preview001 | 50 | 11/1/2024 |