# jsonotron-errors

> A library of the errors raised by the Jsonotron system.

Latest version **1.4.0** (published 2020-08-28) · MIT license · 0 weekly downloads

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

## Install

```sh
npm install jsonotron-errors
pnpm add jsonotron-errors
yarn add jsonotron-errors
bun add jsonotron-errors
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.4.0 |
| Published | 2020-08-28 |
| First published | 2020-06-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 56.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Karl Hulme |
| Maintainers | karlhulme |

## Links

- npm: https://www.npmjs.com/package/jsonotron-errors
- Repository: https://github.com/karlhulme/jsonotron-errors
- Homepage: https://github.com/karlhulme/jsonotron-errors#readme
- Issues: https://github.com/karlhulme/jsonotron-errors/issues
- npm.io page: https://npm.io/package/jsonotron-errors

## Dependencies (1)

- [check-types](https://npm.io/package/check-types.md) ^11.1.2

## Recent versions

- 1.4.0 (latest) — 2020-08-28
- 1.3.1 — 2020-08-21
- 1.3.0 — 2020-08-20
- 1.2.1 — 2020-08-08
- 1.2.0 — 2020-08-08
- 1.1.0 — 2020-08-08
- 1.0.0 — 2020-08-07
- 0.6.0 — 2020-08-04
- 0.5.0 — 2020-08-04
- 0.4.0 — 2020-08-01
- 0.3.2 — 2020-07-23
- 0.3.1 — 2020-07-23
- 0.3.0 — 2020-07-23
- 0.2.1 — 2020-06-20
- 0.2.0 — 2020-06-13
- … 3 more at https://npm.io/package/jsonotron-errors/versions

## README

# A library of errors raised by the Jsonotron system.

![](https://github.com/karlhulme/jsonotron-errors/workflows/CD/badge.svg)
[![npm](https://img.shields.io/npm/v/jsonotron-errors.svg)](https://www.npmjs.com/package/jsonotron-errors)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)

A library of errors raised and consumed by the components of the Jsonotron system.

> This package is part of the Jsonotron system.
>
> Jsonotron is...
> * a small set of components for building a **NodeJS microservice**
> * for storing, patching and querying **JSON documents**
> * stored in a schemaless/NoSQL **database**
> * that have known, enforceable, and **evolving schemas**.
>
> **Visit https://karlhulme.github.io/jsonotron/ for details on how to get started.**

## Installation

```bash
npm install jsonotron-errors --save
```

## Usage

```javascript
const { JsonotronError } = require('jsonotron-errors')

try {
  // perform actions on a jsonotron engine
} catch (err) {
  if (err instanceof JsonotronError)) {
    // handle the JsonotronError
  } else {
    // handle the unexpected error
  }
}
```

## Development

Code base adheres to the rules chosen by https://standardjs.com/.  Code is formatted with 2 spaces.

Tests are written using Jest with 100% coverage.

```javascript
npm test
```

## Continuous Deployment

Any commits to master will cause the library to be re-published.

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