HowTo: Custom “Error” types in JavaScript

There are lots of patterns for various styles of object-oriented JavaScript. They range from the simple few-liner patterns to the complex libraries with lots of syntax sugar. Also, this great book on OO JS by Nicholas Zakas is a must-read. However, I have to admit that I am typically not a fan of most Object-Oriented [...]

Switch to our mobile site