Skip to content

A collection of error classes for use in Express

Notifications You must be signed in to change notification settings

adamreisnz/errors

Repository files navigation

@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

About

A collection of error classes for use in Express

Resources

Stars

Watchers

Forks

Packages

No packages published