# @whi/serious-error-types

> Well defined error types designed for creating robust and deterministic code.

Latest version **0.1.10** (published 2021-06-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install @whi/serious-error-types
pnpm add @whi/serious-error-types
yarn add @whi/serious-error-types
bun add @whi/serious-error-types
```

## 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.1.10 |
| Published | 2021-06-19 |
| First published | 2020-05-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 20.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Matthew Brisebois |
| Maintainers | webheroesinc, brisebom |

## Links

- npm: https://www.npmjs.com/package/@whi/serious-error-types
- Repository: https://github.com/mjbrisebois/serious-error-types
- Homepage: https://github.com/mjbrisebois/serious-error-types#readme
- Issues: https://github.com/mjbrisebois/serious-error-types/issues
- npm.io page: https://npm.io/package/@whi/serious-error-types

## Recent versions

- 0.1.10 (latest) — 2021-06-19
- 0.1.9 — 2021-06-19
- 0.1.8 — 2021-02-18
- 0.1.7 — 2020-06-10
- 0.1.6 — 2020-06-08
- 0.1.5 — 2020-05-28
- 0.1.4 — 2020-05-27
- 0.1.3 — 2020-05-21
- 0.1.2 — 2020-05-11
- 0.1.1 — 2020-05-08
- 0.1.0 — 2020-05-07

## README

[![](https://img.shields.io/npm/v/@whi/serious-error-types/latest?style=flat-square)](http://npmjs.com/package/@whi/serious-error-types)

# Serious Error Types
This module brings a hierarchy of well defined error types to help make error handling a proactive
measure rather than a reactive obligation.

[![](https://img.shields.io/github/issues-raw/mjbrisebois/serious-error-types?style=flat-square)](https://github.com/mjbrisebois/serious-error-types/issues)
[![](https://img.shields.io/github/issues-closed-raw/mjbrisebois/serious-error-types?style=flat-square)](https://github.com/mjbrisebois/serious-error-types/issues?q=is%3Aissue+is%3Aclosed)
[![](https://img.shields.io/github/issues-pr-raw/mjbrisebois/serious-error-types?style=flat-square)](https://github.com/mjbrisebois/serious-error-types/pulls)

## Overview
The ethos behind the hierarchy of types is set of failure mode strategies for creating robust and
deterministic code.

The "Serious" in this module's name implies that these error types are for developers who take their
code seriously; it should not imply that the errors are critical, dangerous, or severe.

Error Hierarchy
```
Error
 |
 |- EvalError
 |- InternalError
 |- RangeError
 |- ReferenceError
 |- SyntaxError
 |- TypeError
 |- URIError
 |
 '- SeriousError
     |
     |- InputError
     |   |- MissingArgumentError
     |   '- InvalidArgumentError
     |
     |- DatabaseError
     |   |- DatabaseQueryError
     |   '- ItemNotFoundError
     |
     |- AuthError
     |   |- AuthenticationError
     |   '- AuthorizationError
     |
     '- HTTPError
         |- HTTPRequestError
         |   '- NotFoundError
         |   '- MethodNotAllowedError
         '- HTTPResponseError
```

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