1.4.0 • Published 4 years ago

jsonotron-errors v1.4.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

A library of errors raised by the Jsonotron system.

npm.io npm JavaScript Style Guide

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

npm install jsonotron-errors --save

Usage

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.

npm test

Continuous Deployment

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

1.4.0

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.0

4 years ago

1.2.1

4 years ago

0.5.0

4 years ago

0.6.0

4 years ago

0.4.0

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.1

4 years ago

0.2.0

4 years ago

0.0.1

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago