CustomLibrary.ProblemDetails
1.1.1
dotnet add package CustomLibrary.ProblemDetails --version 1.1.1
NuGet\Install-Package CustomLibrary.ProblemDetails -Version 1.1.1
<PackageReference Include="CustomLibrary.ProblemDetails" Version="1.1.1" />
paket add CustomLibrary.ProblemDetails --version 1.1.1
#r "nuget: CustomLibrary.ProblemDetails, 1.1.1"
// Install CustomLibrary.ProblemDetails as a Cake Addin #addin nuget:?package=CustomLibrary.ProblemDetails&version=1.1.1 // Install CustomLibrary.ProblemDetails as a Cake Tool #tool nuget:?package=CustomLibrary.ProblemDetails&version=1.1.1
CustomLibrary.ProblemDetails
Collection of tools related to problem management (exceptions) that can be generated by applications.
This library is an ad hoc code customization used in my private/work projects thus avoiding the duplication of repetitive code.
.NET SDK compatibility
.NET SDK | Supported |
---|---|
6.0 | Yes |
7.0 | No |
8.0 | Yes |
How to use ?
A full example is available in the CustomLibrary.ProblemDetails.Sample folder or click here.
Note: For correct operation it is necessary to add services.AddProblemDetails(); and app.UseProblemDetails(); to the Program class or in the Startup class
List of Exception Responses
Status Codes | Exception |
---|---|
304 | NotModifiedException |
400 | BadRequestException |
401 | UnauthorizedException |
403 | ForbiddenException |
404 | NotFoundException |
405 | NotAllowedException |
406 | NotAcceptableException |
408 | RequestTimeoutException |
409 | ConflictException |
422 | UnprocessableEntityException |
500 | InternalServerErrorException |
501 | NotImplementedException |
502 | BadGatewayException |
503 | ServiceUnavailableException |
504 | GatewayTimeoutException |
Contributing
Contributions and/or suggestions are always welcome.
License
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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 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. |
-
net6.0
- Hellang.Middleware.ProblemDetails (>= 6.5.1)
-
net8.0
- Hellang.Middleware.ProblemDetails (>= 6.5.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.