On Thu, 2003-02-27 at 22:39, Tom Ball wrote:
> 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.
This sounds very interesting. In most cases, these problems are only
minor, so should not stop the program from continuing. I think it would
be useful to print a stack trace when such an error occurs (in addition
to the gtk message) and also possibly add this exception to a list of
such exeptions. The user could be notified of additions to this list
with a event so that they can do logging or give an error message. Using
this scheme, it should also be possible to have an option for whether
the exception should also be raised when called, then we can cater for
whatever the application writer wants.
--
.''`. Mark Howard
: :' :
`. `' http://www.tildemh.com
`- mh...@de... | mh...@ti... | mh...@ca...
|