Closed GoogleCodeExporter closed 9 years ago
Throwing specific exceptions, will aid users.
For example: instead of "Duplicate key." (Collection.add), specify the
duplicate key,
like: "Key %1 is duplicate".
Original comment by doek...@gmail.com
on 9 Jun 2007 at 7:08
I'm assigning this to you now that you have commit rights. ;-)
Original comment by dean.edw...@gmail.com
on 10 Jul 2007 at 2:56
Original comment by doek...@gmail.com
on 14 Jul 2007 at 7:06
Original comment by dean.edw...@gmail.com
on 14 Jul 2007 at 10:03
Can you provide some more examples of the kinds of places that I should put
assertions?
Original comment by dean.edw...@gmail.com
on 23 Jul 2007 at 9:05
I have to think about this (I can't think of a concrete example).
But when creating an object without enough arguments, fire-fox gives you very
scary exceptions. And because
of that, checking the arguments is not the first thing someone (at least
myself) would check first.
Original comment by doek...@gmail.com
on 23 Jul 2007 at 5:15
I've decided not to add more exceptions. Checking arguments and throwing
exceptions
is expensive in JavaScript. I will instead create a plugin that does more
ruthless
validation.
Original comment by dean.edw...@gmail.com
on 14 Sep 2007 at 7:23
Original issue reported on code.google.com by
doek...@gmail.com
on 18 May 2007 at 8:05Attachments: