Re: Exception usage

On Wed, Feb 12, 2014 at 1:20 AM, Olli Pettay <> wrote:
> 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?)


Received on Wednesday, 12 February 2014 10:46:36 UTC