@resourcefulhumans/rheactor-errors
v1.1.0
Published
A collection of errors
Downloads
5
Keywords
Readme
rheactor-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)