UNPKG

error-advisor

Version:

NPM module that aim to facilitate the error handling by providing http errors classes and also let you customize business errors as well with handy and clean way.

8 lines (7 loc) 223 B
import { StatusCode } from "../../enum/StatusCode"; export default class PreconditionRequired extends Error { statusCode: StatusCode; type: string; timestamp: number; constructor(message?: string); }