How can I detect when an Exception has been thrown anywhere in my application?
I\'m try to auto-magically send myself an email whenever an exception is thrown anywhe
In this case I think your best bet might be to write a custom classloader to handle all classloading in your application, and whenever an exception class is requested you return a class that wraps the requested exception class. This wrapper calls through to the wrapped exception but also logs the exception event.