[Date Prev][Date Next][Thread Prev][Thread Next][Author Index][Date Index][Thread Index]
Re: [zzdev] Errors and exceptions
- To: Tuomas Lukka <lukka@xxxxxxxxxx>
- Subject: Re: [zzdev] Errors and exceptions
- From: "B. Fallenstein" <b.fallenstein@xxxxxx>
- Date: Sat, 14 Apr 2001 18:07:48 +0200
- Cc: zzdev@xxxxxxxxxx
- References: <20010414155732.A24224@xxxxxxxxxxxxxx>
Tuomas Lukka wrote:
> So we should classify the exceptional conditions as exceptions and errors.
> As background, Java requires explicit "throws" clauses for exceptions, but
> not for errors. Currently most things that go wrong in ZZ are errors in
> order to avoid "throws" clauses everywhere.
Right. I was thinking about that at some point, too.
> Opinions?
I agree with the classes you mention, but we also need a SyntaxError or
similar kind of thing for malformed structures: the program expects some
ZZ structure, but gets something else. This should probably be an error,
because it usually needs to be handled by the user somehow, not the
calling function.
-b.