Welcome To Snipplr


Everyone's Recent JavaScript Snippets Tagged error



« Prev 1 Next »
// create a variable to toggle debugging // to use it, just call debug(with,any,optional,parameters) debug(x,y,z); // it will try to guess what type of message to log, or you can specify in the first parameter debug("error",x,y,z);
1 887 posted 8 years ago by brandonjp
ErrorConstructor produces error constructors that behave the same way as the seven native error constructors. Usage: `ErrorConstructor([constructorName])` *If no constructorName is specified, the default of `Error.prototype.name` is used* Us...
1 513 posted 14 years ago by Sephr
« Prev 1 Next »