# extensible-error

> Error base class for Node.js/browsers

Latest version **1.0.2** (published 2017-08-27) · ISC license · 0 weekly downloads

## Install

```sh
npm install extensible-error
pnpm add extensible-error
yarn add extensible-error
bun add extensible-error
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2017-08-27 |
| First published | 2016-09-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Stefan Thomas |
| Maintainers | justmoon |
| Keywords | error, es6, es2015, extends, extensible, base, class, inherit, stack |

## Links

- npm: https://www.npmjs.com/package/extensible-error
- Repository: https://github.com/justmoon/extensible-error
- Issues: https://github.com/justmoon/extensible-error/issues
- npm.io page: https://npm.io/package/extensible-error

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 1.0.2 (latest) — 2017-08-27
- 1.0.1 — 2017-08-27
- 1.0.0 — 2016-09-20

## README

# ExtensibleError

> Error base class for Node.js/browsers

Unfortunately, JavaScript's built-in `Error` can't simply be extended like any other class. This module provides a class for Node.js and the browser which is designed to behave like `Error`, but be extensible like any other ES2015 class.

## Installation

``` js
npm install --save extensible-error
```

## Usage

``` js
const ExtensibleError = require('extensible-error')

class CustomError extends ExtensibleError {
  constructor (message, extra) {
    super(message)

    this.extra = extra
  }
}
```

---
_Source: https://npm.io/package/extensible-error · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
