Skip to main content
2 events
when toggle format what by license comment
Oct 28, 2015 at 14:00 comment added timruffs Throwing an object is not a great idea. You have no error.stack, standard tooling won't work with it, etc etc. A better way would be to add properties to an error instance, e.g var e = new Error(); e.type = "validation"; ...
Dec 13, 2014 at 4:13 history answered hasen CC BY-SA 3.0