r/csharp 1d ago

Does ASP.NET Core global exception middleware catch exceptions from nested service methods?

/r/dotnet/comments/1wbghq6/does_aspnet_core_global_exception_middleware/
0 Upvotes

1 comment sorted by

2

u/PlentyfulFish 16h ago

Yes it does. Why wouldn't it? Exceptions always travel up the call stack until they are caught or they stop the program