[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnue-dev] Policy for error messages
From: |
Derek Neighbors |
Subject: |
Re: [Gnue-dev] Policy for error messages |
Date: |
Wed, 1 May 2002 23:21:11 -0700 |
Did any one answer this?
I like option (a)
-Derek
On Wed, 24 Apr 2002 03:19:20 +0200
Jan Ischebeck <address@hidden> wrote:
> Hello all,
>
> After GNUe reports client made so much progress over last weeks, I
> decided to try it out. But I allways got the same error message:
>
> The gnue.conf file appears to be missing
> The file should be located in one of the following locations
> bla bla ...
>
> I moved gnue.conf a little bit around, but although forms and designer
> found the file, reports still had problems. Looking at the code I
> realized that the real reason was an >NoSectionError:section reports
> not found<. After spending some much time moving gnue.conf around, I
> thought of making life easier for other people, who forget to update
> their gnue.conf, and to replace that misleading error message by an
> appropriate one.
>
> But the problem goes farer than just replacing one message. In case of
> GConfig every kind of error was catched and the same error message
> (file not found ) was printed allways. i.e. the first step is to
> catch just IOErrors in GConfig. the second step is to catch the
> >NoSectionError< and write a error message, but what should happen to
> >all other exceptions which can occure? These kind of exceptions will
> >allways be there, because its difficult to care for all possible
> >errors while writing the code. I thought of two ways to handle them:
>
> a) catch the Exception and write ... Error type ,,, msg
> b) don't catch the Exception
>
> What do you think? What is the better solution, or do you know a BEST
> solution?
>
> Jan
>
> Jan Ischebeck
> University of Bonn
> Sinologie
> --
>
> _______________________________________________
> Gnue-dev mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/gnue-dev
>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Gnue-dev] Policy for error messages,
Derek Neighbors <=