Skip to content

aimenux/ExceptionHandlingMiddlewareDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Using exception middleware to global handle errors

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages