UNPKG

nodejs-rigorous

Version:
18 lines (13 loc) 350 B
const errorTypes = require('./errorTypes'); const RigorousError = class RigorousErrorClass extends Error { constructor(msgResponse, detail = null) { super(msgResponse); this.response = msgResponse; this.detail = detail; this.date = new Date(); } }; module.exports = { errorTypes, RigorousError, };