# @fangcha/app-error

> An error class contains statusCode, extras.

Latest version **1.6.0** (published 2023-02-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @fangcha/app-error
pnpm add @fangcha/app-error
yarn add @fangcha/app-error
bun add @fangcha/app-error
```

## Health

**Score 35/100 (D)** — status: abandoned.

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

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.6.0 |
| Published | 2023-02-05 |
| First published | 2021-05-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | fang |
| Maintainers | fangqk1991 |
| Keywords | error, app-error, exception |

## Links

- npm: https://www.npmjs.com/package/@fangcha/app-error
- Repository: https://github.com/fangqk1991/fc-kits
- Homepage: https://github.com/fangqk1991/fc-kits#readme
- Issues: https://github.com/fangqk1991/fc-kits/issues
- npm.io page: https://npm.io/package/@fangcha/app-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.6.0 (latest) — 2023-02-05
- 1.5.0 — 2022-11-04
- 1.4.0 — 2022-05-08
- 1.3.0 — 2022-05-08
- 1.2.0 — 2022-05-08
- 1.1.0 — 2021-05-16

## README

# node-app-error
An error class contains statusCode, extras.

## Installation
```
npm install @fangcha/app-error
```

## Usage
In Node.js:

```
const AppError = require('@fangcha/app-error')
...
// somewhere you want to throw an exception.
throw new AppError(message, statusCode, extras)
```

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