- From: Anne van Kesteren <annevk@annevk.nl>
- Date: Sun, 5 Oct 2014 10:26:12 +0200
- To: Harald Alvestrand <harald@alvestrand.no>
- Cc: Jan-Ivar Bruaroey <jib@mozilla.com>, "public-media-capture@w3.org" <public-media-capture@w3.org>
On Sun, Oct 5, 2014 at 10:17 AM, Harald Alvestrand <harald@alvestrand.no> wrote: > The only difference with using DOMException (that I can see) is that we get > a Code field along for the ride. I don't see any value in that; others > might. > > But as Anne's just proved again, we're caught in a twisty little maze of > rules, none alike, so there might be subtleties that I have not understood. It's really simple now, and not really any different from how I told errors work on the platform before. 1) You need to use a standard built-in exception or DOMException for errors. 2) You have control over DOMException's name field: http://heycam.github.io/webidl/#dfn-error-names-table 3) Filing a bug against IDL is all you need to do for one or more new names. -- https://annevankesteren.nl/
Received on Sunday, 5 October 2014 08:26:46 UTC