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,9b2046241520981f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-07-27 20:11:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.airnews.net!cabal12.airnews.net!usenet From: "John R. Strohm" Newsgroups: comp.lang.ada Subject: Re: Ada 0x, exception idea ? Date: Sun, 27 Jul 2003 21:50:21 -0500 Organization: Airnews.net! at Internet America Message-ID: References: <3F229597.3090909@myob.com> Abuse-Reports-To: abuse at airmail.net to report improper postings NNTP-Proxy-Relay: library1-aux.airnews.net NNTP-Posting-Time: Sun, 27 Jul 2003 22:10:04 -0500 (CDT) NNTP-Posting-Host: !dqX+1k-W%]YV(B (Encoded at Airnews!) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: archiver1.google.com comp.lang.ada:40889 Date: 2003-07-27T21:50:21-05:00 List-Id: "sk" wrote in message news:mailman.8.1059350842.320.comp.lang.ada@ada.eu.org... > strohm@airmail.net: > > Exceptions are NOT intended to be used for "normal" situations. > > > > They are intended to be used for HIGHLY UNUSUAL situations, that > > MUST be dealt with. > > Of course, but that should not require one to implement a text > parser to determine the cause of errors. I must be extraordinarily dense today, because I fail utterly to comprehend what you are trying to say. Ada already provides you with access to the exception name, without parsing text, viz. begin call_some_procedure_that_might_barf(params); exception when constraint_error => handle_constraint_error(params); when program_error => handle_program_error(params); when others => raise; end; Would you please clarify?