I've heard that before. My goal is not really to display technical details but to notify user that an error happens, not that he doesnt know why press on button doesnt do anything.
So on error ideal situation would be:
show error message to user: Sorry site is currently unavailable, email has been sent to admin, we will fix it as soon as possible, please come back tomorrow.
And on exception email is sent to admin/developer.
I dont wanna wrap every single function in my module in try catch block because that is unnecesary work.
I just need a function: OnUncaughException()
anbd in it i do this:
- show general error message on site
- send email to developer about error
I think in pure asp net it is possible, is it in dnn too?