[Bug 26903] Parameter validation errors should return SyntaxError not DataError

https://www.w3.org/Bugs/Public/show_bug.cgi?id=26903

--- Comment #6 from Mark Watson <watsonm@netflix.com> ---
Regarding TypeError for out-of-range cases. If the value is actually outside
the range that is value for the data type, for example a negative integer
provided for an unsigned int type, this makes sense.

But if the value is in-range for the type but invalid for some
application-specific reason (e.g. key lengths that can only be one of a set of
specific values) that seems like a different kind of out-of-range.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Friday, 26 September 2014 17:39:37 UTC