# the-error

> Error for the-framework

Latest version **2.0.5** (published 2018-08-12) · MIT license · 0 weekly downloads

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

## Install

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

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.0.5 |
| Published | 2018-08-12 |
| First published | 2017-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 108.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Taka Okunishi |
| Maintainers | okunishinishi |
| Keywords | the |

## Links

- npm: https://www.npmjs.com/package/the-error
- Repository: https://github.com/the-labo/the-error
- Homepage: https://github.com/the-labo/the-error#readme
- Issues: https://github.com/the-labo/the-error/issues
- npm.io page: https://npm.io/package/the-error

## Alternatives

- [@clerk/clerk-expo](https://npm.io/package/@clerk/clerk-expo.md) — 133.6K weekly downloads
- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads

## Recent versions

- 2.0.5 (latest) — 2018-08-12
- 2.0.4 — 2018-08-12
- 2.0.3 — 2018-06-24
- 2.0.1 — 2018-06-19
- 2.0.0 — 2018-02-16
- 1.4.4 — 2018-01-11
- 1.4.3 — 2018-01-11
- 1.4.2 — 2017-12-22
- 1.4.1 — 2017-08-29
- 1.4.0 — 2017-08-28
- 1.3.0 — 2017-08-13
- 1.2.0 — 2017-07-12
- 1.1.1 — 2017-05-06
- 1.1.0 — 2017-05-06
- 1.0.0 — 2017-05-06

## README

the-error
==========

<!---
This file is generated by the-tmpl. Do not update manually.
--->

<!-- Badge Start -->
<a name="badges"></a>

[![Build Status][bd_travis_shield_url]][bd_travis_url]
[![npm Version][bd_npm_shield_url]][bd_npm_url]
[![JS Standard][bd_standard_shield_url]][bd_standard_url]

[bd_repo_url]: https://github.com/the-labo/the-error
[bd_travis_url]: http://travis-ci.org/the-labo/the-error
[bd_travis_shield_url]: http://img.shields.io/travis/the-labo/the-error.svg?style=flat
[bd_travis_com_url]: http://travis-ci.com/the-labo/the-error
[bd_travis_com_shield_url]: https://api.travis-ci.com/the-labo/the-error.svg?token=
[bd_license_url]: https://github.com/the-labo/the-error/blob/master/LICENSE
[bd_npm_url]: http://www.npmjs.org/package/the-error
[bd_npm_shield_url]: http://img.shields.io/npm/v/the-error.svg?style=flat
[bd_standard_url]: http://standardjs.com/
[bd_standard_shield_url]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg

<!-- Badge End -->


<!-- Description Start -->
<a name="description"></a>

Error for the-framework

<!-- Description End -->


<!-- Overview Start -->
<a name="overview"></a>



<!-- Overview End -->


<!-- Sections Start -->
<a name="sections"></a>

<!-- Section from "doc/guides/01.Installation.md.hbs" Start -->

<a name="section-doc-guides-01-installation-md"></a>

Installation
-----

```bash
$ npm install the-error --save
```


<!-- Section from "doc/guides/01.Installation.md.hbs" End -->

<!-- Section from "doc/guides/02.Usage.md.hbs" Start -->

<a name="section-doc-guides-02-usage-md"></a>

Usage
---------

```javascript
'use strict'

const {TheNotFoundError} = require('the-error')

async function tryExample () {
  throw new TheNotFoundError()
}

tryExample().catch((err) => console.error(err))

```


<!-- Section from "doc/guides/02.Usage.md.hbs" End -->

<!-- Section from "doc/guides/10.API Guide.md.hbs" Start -->

<a name="section-doc-guides-10-a-p-i-guide-md"></a>

API Guide
-----

+ [the-error@2.0.5](./doc/api/api.md)
  + [create(args)](./doc/api/api.md#the-error-function-create)
  + [define()](./doc/api/api.md#the-error-function-define)
  + [TheConflictError](./doc/api/api.md#the-conflict-error-class)
  + [TheError](./doc/api/api.md#the-error-class)
  + [TheExpiredError](./doc/api/api.md#the-expired-error-class)
  + [TheForbiddenError](./doc/api/api.md#the-forbidden-error-class)
  + [TheGoneError](./doc/api/api.md#the-gone-error-class)
  + [TheInvalidParameterError](./doc/api/api.md#the-invalid-parameter-error-class)
  + [TheNotAcceptableError](./doc/api/api.md#the-not-acceptable-error-class)
  + [TheNotFoundError](./doc/api/api.md#the-not-found-error-class)
  + [TheRequestTimeoutError](./doc/api/api.md#the-request-timeout-error-class)
  + [TheServerRottenError](./doc/api/api.md#the-server-rotten-error-class)
  + [TheUnauthorizedError](./doc/api/api.md#the-unauthorized-error-class)


<!-- Section from "doc/guides/10.API Guide.md.hbs" End -->


<!-- Sections Start -->


<!-- LICENSE Start -->
<a name="license"></a>

License
-------
This software is released under the [MIT License](https://github.com/the-labo/the-error/blob/master/LICENSE).

<!-- LICENSE End -->


<!-- Links Start -->
<a name="links"></a>

Links
------

+ [THE Labo][t_h_e_labo_url]

[t_h_e_labo_url]: https://github.com/the-labo

<!-- Links End -->

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