# extendable-error

> A simple extendable error class that extends Error.

Latest version **0.1.7** (published 2020-07-15) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.7 |
| Published | 2020-07-15 |
| First published | 2015-12-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 8 |
| Author | vilicvane |
| Maintainers | vilic |

## Links

- npm: https://www.npmjs.com/package/extendable-error
- Repository: https://github.com/vilic/extendable-error
- Homepage: https://github.com/vilic/extendable-error#readme
- Issues: https://github.com/vilic/extendable-error/issues
- npm.io page: https://npm.io/package/extendable-error

## Recent versions

- 0.1.7 (latest) — 2020-07-15
- 0.1.6 — 2020-07-07
- 0.1.5 — 2017-03-17
- 0.1.4 — 2016-04-12
- 0.1.3 — 2016-04-10
- 0.1.2 — 2016-01-26
- 0.1.1 — 2015-12-30
- 0.1.0 — 2015-12-30

## README

# Extendable Error [![Build Status](https://travis-ci.org/vilic/extendable-error.svg)](https://travis-ci.org/vilic/extendable-error)

A simple abstract extendable error class that extends `Error`, which handles the error `name`, `message` and `stack` property.

## Install

```sh
npm install extendable-error --save
```

## Usage

```ts
import ExtendableError from 'extendable-error';

class SomeError extends ExtendableError {
  constructor(
    message: string,
    public code: number
  ) {
    super(message);
  }
}

let someError = new SomeError('Some error', 0x0001);
```

## License

MIT License.

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