Open sohilpandya opened 8 years ago
It's possible to take creating custom Errors to the next level. You can create your own errors with the specific type you're interested in, e.g.
new TypeError()
new SyntaxError()
Can also specify things like the filename and the line number, as outlined here