@resourcefulhumans/rheactor-errors

1.1.0 • Public • Published

rheactor-errors

Build Status npm version monitored by greenkeeper.io js-standard-style semantic-release Test Coverage Code Climate

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)

Readme

Keywords

none

Package Sidebar

Install

npm i @resourcefulhumans/rheactor-errors

Weekly Downloads

0

Version

1.1.0

License

MIT

Last publish

Collaborators

  • resourcefuldevelopers
  • dam1r89
  • jonfm
  • twfarland