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

Re: Exception usage

From: Anne van Kesteren <annevk@annevk.nl>
Date: Wed, 12 Feb 2014 10:46:05 +0000
Message-ID: <CADnb78hVSE9b4Ncn37qAchAP5xoSm3AgA4iGE_zEcf_vwJvc2g@mail.gmail.com>
To: "Olli@pettay.fi" <olli@pettay.fi>
Cc: Matt Brubeck <mbrubeck@mozilla.com>, "public-pointer-events@w3.org" <public-pointer-events@w3.org>
On Wed, Feb 12, 2014 at 1:20 AM, Olli Pettay <Olli.Pettay@helsinki.fi> wrote:
> http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.normalize
> is still quite different.
> There you have a predefined set of values, and if something else is passed,
> it is RangeError.
>
> pointerId can be any random number. RangeError gives a wrong hint that there
> would be some sort of
> continuous range, and that is explicitly what we don't want.

Fair enough. Then TypeError would be fine.

(Can code always know the active pointers btw?)


-- 
http://annevankesteren.nl/
Received on Wednesday, 12 February 2014 10:46:36 UTC

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