From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1592759aa83d0d45 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-26 00:51:35 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: wojtek@power.com.pl (Wojtek Narczynski) Newsgroups: comp.lang.ada Subject: Re: Suggestion for Ada 200x - Interface inheritance Date: 26 May 2003 00:51:35 -0700 Organization: http://groups.google.com/ Message-ID: <5ad0dd8a.0305252351.7272ef94@posting.google.com> References: <0Pxza.699607$OV.652508@rwcrnsc54> <5ad0dd8a.0305240435.337d9373@posting.google.com> <5ad0dd8a.0305250612.ec54c23@posting.google.com> <3ED1039F.7010001@spam.com> NNTP-Posting-Host: 62.111.211.178 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1053935495 26913 127.0.0.1 (26 May 2003 07:51:35 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 26 May 2003 07:51:35 GMT Xref: archiver1.google.com comp.lang.ada:37771 Date: 2003-05-26T07:51:35+00:00 List-Id: Wesley Groleau wrote in message news:... > But that meant adding a throws clause to each of hundreds of > files. People tend to heavily abuse 'throw new XxxxException' instead of 'throw new Error'. The difference is that Excetions are supposed to be handled gracefully while Errors should cause the JVM to die. So when you know that you cannot go on, you just throw an Error. In library code you'll often throw exceptions, but in application code you'll often catch an exception just to throw an error. Regards, Wojtek