Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@resourcefulhumans/rheactor-errors

A collection of errors

readme

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)