Jinget.ExceptionHandler
8.0.0-preview013
Prefix Reserved
dotnet add package Jinget.ExceptionHandler --version 8.0.0-preview013
NuGet\Install-Package Jinget.ExceptionHandler -Version 8.0.0-preview013
<PackageReference Include="Jinget.ExceptionHandler" Version="8.0.0-preview013" />
paket add Jinget.ExceptionHandler --version 8.0.0-preview013
#r "nuget: Jinget.ExceptionHandler, 8.0.0-preview013"
// Install Jinget.ExceptionHandler as a Cake Addin #addin nuget:?package=Jinget.ExceptionHandler&version=8.0.0-preview013&prerelease // Install Jinget.ExceptionHandler as a Cake Tool #tool nuget:?package=Jinget.ExceptionHandler&version=8.0.0-preview013&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-preview013)
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-preview013 | 61 | 12/19/2024 |
8.0.0-preview012 | 48 | 12/19/2024 |
8.0.0-preview011 | 52 | 12/17/2024 |
8.0.0-preview010 | 65 | 12/16/2024 |
8.0.0-preview009 | 53 | 12/15/2024 |
8.0.0-preview008 | 75 | 11/25/2024 |
8.0.0-preview007 | 95 | 11/11/2024 |
8.0.0-preview006 | 75 | 11/2/2024 |
8.0.0-preview005 | 55 | 11/2/2024 |
8.0.0-preview004 | 56 | 11/1/2024 |
8.0.0-preview003 | 57 | 11/1/2024 |
8.0.0-preview002 | 60 | 11/1/2024 |
8.0.0-preview001 | 60 | 11/1/2024 |