# @textpress/extendable-error

> Extendable error class for nodejs

Latest version **0.6.3** (published 2020-01-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install @textpress/extendable-error
pnpm add @textpress/extendable-error
yarn add @textpress/extendable-error
bun add @textpress/extendable-error
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.3 |
| Published | 2020-01-08 |
| First published | 2017-08-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 217.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Textpress |
| Maintainers | textpress-ci |

## Links

- npm: https://www.npmjs.com/package/@textpress/extendable-error
- Repository: https://github.com/textpress/extendable-error
- Issues: https://github.com/textpress/extendable-error/issues
- npm.io page: https://npm.io/package/@textpress/extendable-error

## Recent versions

- 0.6.3 (latest) — 2020-01-08
- 0.6.2 — 2018-04-07
- 0.6.1 — 2017-09-15
- 0.6.0 — 2017-09-15
- 0.5.1 — 2017-09-15
- 0.5.0 — 2017-09-15
- 0.4.0 — 2017-09-08
- 0.3.0 — 2017-08-05
- 0.2.2 — 2017-08-02
- 0.2.1 — 2017-08-02
- 0.2.0 — 2017-08-02
- 0.1.0 — 2017-08-02

## README

## Example

```
import ExtendableError from "@textpress/extendable-error"

class MyError extends ExtendableError {
    constructor( name, extra ) {
        super( name, extra );
    }
}

const error = new MyError( "this is test", { extra: "data" }  )
console.error( error ); 
```

## Output

```
MyError: this is test
	{ extra: 'data' }
    at ...
```

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