@reis/errors

6.0.3 • Public • Published

@reis/errors

npm version github issues

A collection of common error classes

Installation

You can install this package using yarn or npm.

#yarn
yarn add @reis/errors

#npm
npm install @reis/errors --save

Usage

//Load needed error classes
import {BadRequestError, NotFoundError} from '@reis/errors'

//Use in some function
export function someMiddleware() {
  throw new BadRequestError('Bad things happened')
}

Issues & feature requests

Please report any bugs, issues, suggestions and feature requests in the errors issue tracker.

License

(MIT License)

Copyright 2016-2023, Adam Reis

Package Sidebar

Install

npm i @reis/errors

Weekly Downloads

8

Version

6.0.3

License

MIT

Unpacked Size

17.5 kB

Total Files

26

Last publish

Collaborators

  • adamreisnz