error-apiv3.js 263 B

123456789101112
  1. class ErrorV3 extends Error {
  2. constructor(message = '', code = '', stack = undefined) {
  3. super(); // do not provide message to the super constructor
  4. this.message = message;
  5. this.code = code;
  6. this.stack = stack;
  7. }
  8. }
  9. module.exports = ErrorV3;