CustomLibrary.ProblemDetails 1.1.1

dotnet add package CustomLibrary.ProblemDetails --version 1.1.1                
NuGet\Install-Package CustomLibrary.ProblemDetails -Version 1.1.1                
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="CustomLibrary.ProblemDetails" Version="1.1.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CustomLibrary.ProblemDetails --version 1.1.1                
#r "nuget: CustomLibrary.ProblemDetails, 1.1.1"                
#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 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

GitHub License

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.1.1 198 12/21/2023
1.0.35 177 10/31/2023
1.0.33 121 10/30/2023
1.0.31 138 10/28/2023
1.0.29 123 10/24/2023
1.0.26 137 9/25/2023
1.0.24 133 9/12/2023
1.0.22 174 8/29/2023