Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UseExceptionHandler vs GlobalExceptionMiddleware

I am just trying to understand while ASP.Net Core 2.x offers the possibility of app.UseExceptionHandler("/Error") here, and even UseStatusCodePagesWithReExecute here Do we still need to implement a global exception handling middleware like what is being discuss in here? or even here which is know by GlobalExceptionMiddleware and needs to be registered in the most button layer of chain of layers in .Net Core

like image 230
Aydin Homay Avatar asked May 06 '26 18:05

Aydin Homay


1 Answers

I updated the Microsoft document to make this question clear.

like image 165
Aydin Homay Avatar answered May 10 '26 00:05

Aydin Homay