From: Archie Cobbs (archie@whistle.com)
Date: Tue Dec 08 1998 - 16:09:32 EST
Godmar Back writes:
> But see, it's not really a discrepancy: API functions can always raise
> errors or runtime exceptions. It's a judgement call as to which (real)
> errors to guard against and to turn into exceptions/errors.
Right.. though this only happens in the case of runtime exceptions.
Normal exceptions must be documented in the code via "throws".
> I guess we could file a bug report that says this stuff is "underspecified".
Yes.. so I guess we could argue that Sun should document what
methods throw what (known) runtime exceptions, when there are
special (or likely) cases. It is an open-ended problem though.
-Archie
___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:08 EDT