Since ELMAH logs UNHANDLED exceptions and I want to log all errors via ELMAH, does that mean I should not be using try-catch block anymore anywhere on my code? If I do not use it, it will show the yellow screen of death, which I believe I can be handled through the custom error pages.
So, I think try-catch block will be useless if you use ELMAH, am I right? If not, what are the use cases of using try catch with ELMAH?
With ELMAH you can catch errors, handle them and still log the issue using ErrorSignal. http://blog.elmah.io/how-to-log-errors-to-elmah-programmatically/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With