W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2013

Re: [DOMError]: Subclassing DOMError to increase granularity of error handling?

From: Anne van Kesteren <annevk@annevk.nl>
Date: Tue, 6 Aug 2013 10:53:33 +0100
Message-ID: <CADnb78gWgFHhVMXRM374s1_TF2GGJxbVEvnq+Z2Bmvs5BQv2fQ@mail.gmail.com>
To: "Nilsson, Claes1" <Claes1.Nilsson@sonymobile.com>
Cc: "www-dom@w3.org" <www-dom@w3.org>, "public-sysapps@w3.org" <public-sysapps@w3.org>
On Tue, Aug 6, 2013 at 10:24 AM, Nilsson, Claes1
<Claes1.Nilsson@sonymobile.com> wrote:
> WDYT about this approach? Is this a reasonable solution?

DOMError is going away. We only need DOMException. Allen (editor of
ECMAScript) did suggest we do something like what you suggest. Have
DOMException.prototype.subname which gives a more detailed name and
ideally have DOMException.name be "DOMException" but we can probably
no longer do that. Still need to work out the details here
unfortunately as apparently last time we thought we figured error
handling out we didn't :/


-- 
http://annevankesteren.nl/
Received on Tuesday, 6 August 2013 09:54:04 UTC

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