Welcome To Snipplr
Everyone's Recent JavaScript Snippets Tagged error
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
« 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
1152
posted 9 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
671
posted 15 years ago by Sephr
« Prev 1 Next »