# context-error

> Tell users what line really matters in the stack trace.

Latest version **0.0.1** (published 2013-11-07) · BSD-2-Clause license · 0 weekly downloads

## Install

```sh
npm install context-error
pnpm add context-error
yarn add context-error
bun add context-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.0.1 |
| Published | 2013-11-07 |
| First published | 2013-11-07 |
| Weekly downloads | 0 |
| License | BSD-2-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matthew Chase Whittemore |
| Maintainers | mcwhittemore |
| Keywords | error, context, throw |

## Links

- npm: https://www.npmjs.com/package/context-error
- Repository: https://github.com/mcwhittemore/context-error
- Issues: https://github.com/mcwhittemore/context-error/issues
- npm.io page: https://npm.io/package/context-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

- 0.0.1 (latest) — 2013-11-07

## README

# Context-Error

Tell users what line really matters in the stack trace.

## Usage

`npm install context-error`

```
var ContextError = require("context-error");
throw ContextError("You've Done Something Wrong", 2);
```

## API

### ContextError(message, stackLineNumber)

Returns an error ready to be thrown

* message: the message you want the error to start with
* stackLineNumber: The line number of the stack trace you think caused the error.

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