@rheactorjs/errors
v1.0.2
Published
A collection of errors
Downloads
7
Readme
errors
A collection of errors
Note that Babel does not support extending builtin classes, so we use this way to create the error objects:
class MyError {
constructor(message) {
this.name = MyError.name
this.message = message
this.stack = (new Error(message)).stack
}
}
MyError.prototype = Object.create(Error.prototype)