W3C home > Mailing lists > Public > www-dom@w3.org > April to June 2012

[Bug 16608] Algorithms should rethrow the exception

From: <bugzilla@jessica.w3.org>
Date: Tue, 03 Apr 2012 13:08:38 +0000
To: www-dom@w3.org
Message-Id: <E1SF3TS-0007Nj-6z@jessica.w3.org>

Glenn Maynard <glenn@zewt.org> changed:

           What    |Removed                     |Added
             Status|CLOSED                      |REOPENED
                 CC|                            |glenn@zewt.org
         Resolution|FIXED                       |

--- Comment #2 from Glenn Maynard <glenn@zewt.org> 2012-04-03 13:08:37 UTC ---
I strongly disagree with this approach.

Specifications should explicitly catch and rethrow exceptions, so it's clear
where the possible exit points in an algorithm are, what exceptions they may
throw, and so overlooked exceptions at any point are strictly a bug.  If you
can't keep track of what exceptions might be thrown underneath your algorithm,
the people calling your algorithm won't be able to, either.

Configure bugmail: https://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
Received on Tuesday, 3 April 2012 13:08:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:37:00 UTC