Skip to content

retegate/Retegate.ErrorHandling

Repository files navigation

.NET error handling class for web api

The pipeline behaviour is the solution to handle errors in a consistent way across the application.

As a inspiration the https://datatracker.ietf.org/doc/html/rfc9457 source was used.

Main motivation is to enable maximum predictable structure information into OpenAPI documentation for the REST API. The Microsoft inbuild .NET ProblemDetails class is not sufficient in the details part which is a dictionary (i.e. non-deterministic structure of data).

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

.NET error handling for REST API projects following RFC 9457. Why another error handling? To have everything predictable and documented in Open Api Document (no dictionaries with non-in compile time non-determinable attributes in problem details structure.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages