Options
All
  • Public
  • Public/Protected
  • All
Menu

@bluejay/rest-errors

RestErrors

Rest oriented set of errors.

Requirements

  • node >= 7.10
  • typescript >= 2.4

Installation

npm i @bluejay/rest-errors;

Usage

import * as RestErrors from '@bluejay/rest-errors';

const err = new RestErrors.BadRequest('Something went wrong.', { some: { meta: 'data' } });
RestErrors.isRestError(err); // true

Documentation

See Github Pages.

Generated using TypeDoc