C
C#2y 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
BuberBreakfast/ErrorsController.cs at master · GhoulamMB/BuberBreak...
Contribute to GhoulamMB/BuberBreakfast development by creating an account on GitHub.
8 Replies
atakancracker
atakancracker2y ago
Program.cs app.UseExceptionHandler("/error")
atakancracker
atakancracker2y ago
atakancracker
atakancracker2y ago
That's where it's specified
ghoulam
ghoulam2y ago
i've never been that stupid in my life catclown
atakancracker
atakancracker2y ago
Tell me about it. Happens every hour
ghoulam
ghoulam2y ago
i completely forgot that i wrote it i think that's enough coding today
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.