@rheactorjs/errors

1.0.2 • Public • Published

errors

npm version Build Status Greenkeeper badge 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 @rheactorjs/errors

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • coderbyheart