W3C home > Mailing lists > Public > public-script-coord@w3.org > April to June 2012

Re: Should Exceptions be Errors in the ECMAScript bindings?

From: Cameron McCormack <cam@mcc.id.au>
Date: Sat, 23 Jun 2012 12:36:46 +1000
Message-ID: <4FE52BBE.3050501@mcc.id.au>
To: Allen Wirfs-Brock <allen@wirfs-brock.com>
CC: Travis Leithead <Travis.Leithead@microsoft.com>, Erik Arvidsson <arv@chromium.org>, "public-script-coord@w3.org" <public-script-coord@w3.org>
Cameron McCormack:
> All right.  Constructors for Web IDL exceptions do not explicitly invoke
> a superclass' constructor, but they do everything in
> http://es5.github.com/#x15.11.7.2 except set [[Class]] to "Error".  It
> might be good to have a note to say that exception objects are intended
> to be errors, so any non-standard things that appear on Error objects
> like stack traces and line numbers should also appear on them.

I made this change:

http://dev.w3.org/2006/webapi/WebIDL/#es-exception-objects

http://dev.w3.org/cvsweb/2006/webapi/WebIDL/Overview.xml.diff?r1=1.544;r2=1.545;f=h
Received on Saturday, 23 June 2012 02:37:24 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 May 2013 19:30:06 UTC