# combined-error

> Simple zero dependencies error for combining other errors, which ensures to have correct stack always

Latest version **1.0.0** (published 2016-04-07) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-04-07 |
| First published | 2016-04-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Denis Bardadym |
| Maintainers | btd |
| Keywords | error, combined error, cause |

## Links

- npm: https://www.npmjs.com/package/combined-error
- Repository: https://github.com/btd/combined-error
- Homepage: https://github.com/btd/combined-error#readme
- Issues: https://github.com/btd/combined-error/issues
- npm.io page: https://npm.io/package/combined-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.0 (latest) — 2016-04-07

## README

# CombinedError

Zero dependencies error that allow to combine other errors in cause chains.
This is useful if you want to save original errors from other modules.

## Example
var CE = require('combined-error');

var err1 = new CE(new Error('boom'), 'something bad 1');

console.log(err1.stack);

try {
  try {
    throw new Error('boom');
  } catch(e) {
    throw new CE(e, 'something bad 2');
  }
} catch(e) {
  console.log(e.stack);
}

## Browsers

Tested in FF, Safari, Chrome, i do not have ability to test IE and Edge.

## Node.js

Just require it.

## License

MIT

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