visitormanagement
visitormanagement copied to clipboard
ExceptionHandlingMiddleware seems to not catch a global exception
Congratulations for the great architecture.
I tried to see if ExceptionHandlingMiddleware
was working, so I placed a breakpoint after login here:
And then I set the request
object to be null to generate an exception as in the following image.
I had a breakpoint in the ExceptionHandingMiddleware
class here:
To see if the line was hit but it never gets into that catch statement.
Any clue?
ExceptionHandlingMiddleware just catches MediaR handle.
ExceptionHandlingMiddleware just catches MediaR handle.
Is there a way to have a global exception handler for everything?
I was reading there is Error Boundaries in .NET6, is that implemented in this project for handing exceptions? Appreciate it
Error Boundaries is working for the page level. as I know