Skip to content

aimenux/ExceptionHandlingMiddlewareDemo

Repository files navigation

.NET

ExceptionHandlingMiddlewareDemo

Using exception middleware to global handle errors

In this demo, i m using an exception middleware in order to handle errors in the whole application.

Exceptions are thrown by :

  • Infrastructure : see Proxy (which simulate an external instable web service)
  • Domain : see CompanyService (which simulate some dummy eligibility rules)

Exceptions are catched by the exception middleware and formatted using problem details specification

Tools : net 8.0, xunit

Releases

No releases published

Packages

No packages published

Languages