Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 768 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 768 Bytes

.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