I just finished reading Exception Driven Programming and I'm wondering about something like ELMAH for Java. Did you know it?
Interesting features:
NOTE
log4j is for logging, it is not an integrated solution for exception handling
Customized Exception Handling : Java exception handling is managed via five keywords: try, catch, throw, throws, and finally. Briefly, here is how they work. Program statements that you think can raise exceptions are contained within a try block. If an exception occurs within the try block, it is thrown.
An exception is an unwanted or unexpected event, which occurs during the execution of a program i.e at run time, that disrupts the normal flow of the program’s instructions.
If an exception occurs within the try block, it is thrown. Your code can catch this exception (using catch block) and handle it in some rational manner. System-generated exceptions are automatically thrown by the Java run-time system.
The Java throw keyword is used to explicitly throw a single exception. When we throw an exception, the flow of the program moves from the try block to the catch block. In the above example, we are explicitly throwing the ArithmeticException using the throw keyword.
This is an old question but I don't see an accepted answer so...
I'm pleased to announce v3.0 of LogDigger Connector library that:
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