Twileloop.ExpressGlobalExceptionHandler
1.0.0
Prefix Reserved
This package is no more maintained by the Author. Visit https://packages.twileloop.com/ for new packages
dotnet add package Twileloop.ExpressGlobalExceptionHandler --version 1.0.0
NuGet\Install-Package Twileloop.ExpressGlobalExceptionHandler -Version 1.0.0
<PackageReference Include="Twileloop.ExpressGlobalExceptionHandler" Version="1.0.0" />
paket add Twileloop.ExpressGlobalExceptionHandler --version 1.0.0
#r "nuget: Twileloop.ExpressGlobalExceptionHandler, 1.0.0"
// Install Twileloop.ExpressGlobalExceptionHandler as a Cake Addin #addin nuget:?package=Twileloop.ExpressGlobalExceptionHandler&version=1.0.0 // Install Twileloop.ExpressGlobalExceptionHandler as a Cake Tool #tool nuget:?package=Twileloop.ExpressGlobalExceptionHandler&version=1.0.0
Express-Global-Exception-Handler
Global exception handler and Standard Response for ASP.NET Core Web APIs
Express Global exception handler integrates seamlessly into your .NET Core Web API project and provides error response in http response. It includes and uses a standard API response JSON that your application can use on any endpoint. Integration is seamless
Register Exception Handler
After you reference the project from NuGet, Register the global exception handler to the request pipeline on Startup.cs inside Configure methord
app.UseGlobalExceptionHandler();
Standard Response
The library also includes and uses a standard Response pattern. You can use that from your API endpoints easily which makes your API response reliable and standardised.
return new Response<Model>
{
IsSuccess = true,
Message = "The request is successfull",
ResponseStatus = ResponseStatus.SUCCESS,
Data = data
};
//Or if there is no data payload
return new Response
{
IsSuccess = true,
Message = "The request is successfull",
ResponseStatus = ResponseStatus.SUCCESS
};
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. 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. |
.NET Core | netcoreapp3.1 is compatible. |
-
.NETCoreApp 3.1
- Microsoft.AspNetCore.Diagnostics (>= 2.2.0)
- Microsoft.AspNetCore.Http.Abstractions (>= 2.2.0)
- Newtonsoft.Json (>= 12.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated | |
---|---|---|---|
1.0.0 | 546 | 9/12/2020 |