Chad Austin (2013-07-10T17:45:27.000Z)
github at esdiscuss.org (2013-07-12T02:27:45.770Z)
As an example from the field, here is how we extend our own error types: https://github.com/imvu/imvujs/blob/master/src/error.js You can either switch on `e.name` or use `e instanceof ErrorType` in your `catch` handler. Like Francois's approach, it also preserves the `stack` property if the browser supports it.