[java-gnome-hackers] Native error handling
Brought to you by:
afcowie
From: Tom B. <Tom...@Su...> - 2003-02-27 22:39:48
|
The various GNOME error and warning messages that get displayed to the console were bothering me, so I implemented log handlers for the libraries we use. These handlers throw a RuntimeException with the error message inside. Is something like this of interest to you folks? Regardless of what gets designed, we need some sort of error reporting strategy. I like using RuntimeExceptions because they are easier for an application writer to manage than log handlers (just add a catch block). Another option is some sort of Error event and listener, but then errors would get reported after the offending method invocation, rather than during it. Tom |