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
If you are using java 1.3/1.4, Thread.UncaughtExceptionHandler is not available. In this case you can use a solution based on AOP to trigger some code when an exception is thrown. Spring and/or aspectJ might be helpful.