# connect-error

> Smoothly pass errors through your connect application

Latest version **1.0.0** (published 2013-01-07) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

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

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2013-01-07 |
| First published | 2013-01-07 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 0.x |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Damien Klinnert |
| Maintainers | damienklinnert |
| Keywords | connect, express, middleware, error, handler, res.error, response, error-handler |

## Links

- npm: https://www.npmjs.com/package/connect-error
- Repository: https://github.com/damienklinnert/connect-error
- npm.io page: https://npm.io/package/connect-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) — 2013-01-07
- 0.0.1 — 2013-01-07

## README

connect-error
=============

Smoothly pass errors through your connect application.


example
-------

First of all install this module with `npm install connect-error`.

    var connect = require('connect'),
        connectError = require('connect-error');

    app = connect()
      .use(connectError())
      .use(function (req, res) {
        // create a correct error object and pass it to our error handler
        res.error('example error');
      })
      .use(function (err, req, res, next) {
        // err is a clean `Error` instance with a `stack` property.
        // application flow will jump directly to this error handler.
      })
      .listen(3000);


todo
----

 - Add filter support for whenever errors appear (allow airbreak, string
   manipulation and substitution or other things)

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