W3C home > Mailing lists > Public > public-pointer-events@w3.org > January to March 2014

RE: Exception usage

From: Jacob Rossi <Jacob.Rossi@microsoft.com>
Date: Fri, 14 Feb 2014 21:57:41 +0000
To: Anne van Kesteren <annevk@annevk.nl>
CC: "Olli@pettay.fi" <olli@pettay.fi>, Matt Brubeck <mbrubeck@mozilla.com>, "public-pointer-events@w3.org" <public-pointer-events@w3.org>
Message-ID: <18a3d2cc6de94032bc5c697c8680201a@BY2PR03MB457.namprd03.prod.outlook.com>
On Thu, Feb 13, 2014 at 1:57 AM, Anne van Kesteren <annevk@annevk.nl> wrote:
>
> On Wed, Feb 12, 2014 at 11:57 PM, Jacob Rossi <Jacob.Rossi@microsoft.com> wrote:
> > I think TypeError is also inappropriate. The exceptional scenario includes cases where the argument type is correct (number) but the particular value is not.
>
> That's fine. TypeError can be used for many different reasons. See the
> JavaScript specification or ask its author.

I agree TypeError may be suitable. To be transparent, it would take significantly work for IE to implement this (we currently do not have the ability to throw script engine errors from DOM APIs). That's a solvable problem, but I'm not sure I understand its value. Why isn't providing a more descriptive error name (as currently spec'd) better for the developer?


Received on Friday, 14 February 2014 21:58:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:20:26 UTC