This is the mail archive of the
frysk@sources.redhat.com
mailing list for the frysk project.
Re: Core Exception Throwing and Handling
- From: Mark Wielaard <mark at klomp dot org>
- To: Phil Muldoon <pmuldoon at redhat dot com>
- Cc: frysk at sourceware dot org
- Date: Fri, 15 Sep 2006 14:29:05 +0200
- Subject: Re: Core Exception Throwing and Handling
- References: <450A027C.8080109@redhat.com> <450A1AC8.2020101@redhat.com>
On Thu, 2006-09-14 at 22:15 -0500, Phil Muldoon wrote:
> However from a
> purely client point of view, the client still has to figure out:
>
> 1) Is the exception bad? Will data corruption possibly occur if I continue;
> 2) Ah oh well, could not get that information, but it is ok to move on.
These are documentation issues. If it isn't documented what a return
value or exception thrown means then complain! And the default
assumption with exceptions thrown but not documented is that it is
really bad.
> This leads me to think of four scenarios:
>
> 1) Do what we do now. Show the exception in a window, and ask if the
> user wants to continue or quit
> 2) Log the exception and continue
> 3) Have a high exception throwing threshold. Only "bad" exceptions are
> thrown.
> 4) Quit the UI, print the stacktrace, wait for bugzillas
3 is the only real option. And if you don't know what the exception is
for then assume it is bad. It is probably a bug and leaves the system in
an unknown state. You cannot make the user happy in that case.
Cheers,
Mark