Jinget.ExceptionHandler 8.0.0-preview008

Prefix Reserved
This is a prerelease version of Jinget.ExceptionHandler.
dotnet add package Jinget.ExceptionHandler --version 8.0.0-preview008                
NuGet\Install-Package Jinget.ExceptionHandler -Version 8.0.0-preview008                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Jinget.ExceptionHandler" Version="8.0.0-preview008" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Jinget.ExceptionHandler --version 8.0.0-preview008                
#r "nuget: Jinget.ExceptionHandler, 8.0.0-preview008"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Jinget.ExceptionHandler as a Cake Addin
#addin nuget:?package=Jinget.ExceptionHandler&version=8.0.0-preview008&prerelease

// Install Jinget.ExceptionHandler as a Cake Tool
#tool nuget:?package=Jinget.ExceptionHandler&version=8.0.0-preview008&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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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-preview008 54 11/25/2024
8.0.0-preview007 86 11/11/2024
8.0.0-preview006 66 11/2/2024
8.0.0-preview005 48 11/2/2024
8.0.0-preview004 50 11/1/2024
8.0.0-preview003 52 11/1/2024
8.0.0-preview002 51 11/1/2024
8.0.0-preview001 51 11/1/2024