I know a lot has been written about this subject and I have tried to educate myself. The API and most people, it seems, state that
you should not catch an error because they are too serious to recover from. But some people make exceptions, and I am unsure about my situation.
I have a small web application that accesses and updates MySQL without pooled connections and sends out emails from time-to-time using multiple threads. This is the general form of my
servlets:
Is trying to catch an error like this a reasonable approach? Will it even work? If I stop doing this in my servlets, what will happen if an error occurs?
Thank you.