Global Exception Handling in Asp.Net Core Web API using IExceptionHandler

  Рет қаралды 27,165

Nitish Kaushik

Nitish Kaushik

Күн бұрын

Пікірлер: 31
@kaushikbhadani
@kaushikbhadani 11 ай бұрын
Thank you Nitish Kaushik! Your tutorial is very very nice. waiting for your new series...
@egitim10
@egitim10 9 ай бұрын
Very clear. Thanks Nitish
@TeemoPwnstar
@TeemoPwnstar 7 ай бұрын
Excellent video - thank you Nitish
@nitish.kaushik
@nitish.kaushik 7 ай бұрын
Glad you liked it!
@NaveenKumar-dc8jv
@NaveenKumar-dc8jv 8 ай бұрын
Simple and good. :)
@sachinrajput4746
@sachinrajput4746 11 ай бұрын
Thanks sir
@aamirkhan3657
@aamirkhan3657 9 ай бұрын
how can i get the error message with status code from exception middleware and get it in api controller and send that in response to the user
@venkatrao100
@venkatrao100 Ай бұрын
How to close db connections if exception raised in this approach? Generally i can close db connection in finally block...
@GurdeepSingh-cg1yp
@GurdeepSingh-cg1yp 4 ай бұрын
The use of "if not" in the exception handlers is not a good idea as that would mean you will need to add a new check to all your handlers every time you add a new exception handler.
@vyshakhkm
@vyshakhkm 10 ай бұрын
How can use this exception handler in POST request
@coding-gemini
@coding-gemini 3 ай бұрын
This is good stuff bro, thanks. What if we want to continue processing other code and not return back the exception to the controller just logging it, how do we do that.
@adarsharooradarsharoor5305
@adarsharooradarsharoor5305 7 ай бұрын
How can we include it in the DLL's because all the business logics usually we write it inside the separate DLL's.
@geragamo
@geragamo 2 ай бұрын
nice
@achalprajapati1192
@achalprajapati1192 5 ай бұрын
if we are use Authorize attribute then How to handle Authorize exception handling?
@farapar3783
@farapar3783 11 ай бұрын
if my app can not to connect to db then how this handler can help because in my code i cant throw excetion
@nitish.kaushik
@nitish.kaushik 11 ай бұрын
You don't have to throw the exception explicitly. I was throwing them just for the demo. Otherwise this Handler will catch all the exceptions.
@KnowlegeStream
@KnowlegeStream 7 ай бұрын
How to register Exception handler with logger in Program.cs?
@oveskhan687
@oveskhan687 9 ай бұрын
can you show how to use this handler in console app
@nitish.kaushik
@nitish.kaushik 8 ай бұрын
This is for Asp.Net core only
@oveskhan687
@oveskhan687 8 ай бұрын
@@nitish.kaushik yes .net core console app. How to implement it on console app.
@nitish.kaushik
@nitish.kaushik 8 ай бұрын
Asp. Net core is for web applications. Asp. Net core is a sub framework of dotnet core ecosystem and asp.net core is diff from console
@omarabdelrahim8949
@omarabdelrahim8949 2 ай бұрын
I need a full course with real project multi language supporting with generate report and sending real time notification.
@UnbiasedThamizhan
@UnbiasedThamizhan 7 ай бұрын
Your intention is right, but not clear; You have to stop and show the difference between two handlers.
@v4raziel
@v4raziel 4 ай бұрын
Bad Approach for handling multiple exceptions types.. app.
@krccmsitp2884
@krccmsitp2884 3 ай бұрын
You can handle multiple or even all exception types in one single exception handler.
HttpClient in Asp.Net Core Web API | HttpClient C#
27:33
Nitish Kaushik
Рет қаралды 8 М.
The New Global Error Handling in ASP.NET Core 8
13:41
Milan Jovanović
Рет қаралды 47 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
It works #beatbox #tiktok
00:34
BeatboxJCOP
Рет қаралды 41 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
Background Tasks Are Finally Fixed in .NET 8
10:29
Nick Chapsas
Рет қаралды 118 М.
Don't throw exceptions in C#. Do this instead
18:13
Nick Chapsas
Рет қаралды 264 М.
167. Should I Create A Minimal API Or Full API?
7:40
IAmTimCorey
Рет қаралды 39 М.
62. .NET Framework vs .NET Core vs .NET vs .NET Standard vs C#
25:14
The Logging Everyone Should Be Using in .NET
15:34
Nick Chapsas
Рет қаралды 90 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН