C#C
C#4y ago
ghoulam

❔ confused about Error controller

Hi,
i was following a tutorial about building APIs and the tutor used a new controller named it ErrorsController and just inherited ControllerBase and whenever a problem happens with the service it automatically call the error endpoint while it wasn't specified anywhere i tried looking at the call stack but didn't get much of it.
Here is the code:
https://github.com/GhoulamMB/BuberBreakfast/blob/master/BuberBreakfast/Controllers/ErrorsController.cs
Thanks in advance.
GitHub
Contribute to GhoulamMB/BuberBreakfast development by creating an account on GitHub.
Was this page helpful?