constructor()

in lib/exceptions.js [4:15]


  constructor(message = '') {
    super(`${PACKAGE_NAME} exception. ${message}`);

    this.name = this.constructor.name;

    /* istanbul ignore else  */
    if (typeof Error.captureStackTrace === 'function') {
      Error.captureStackTrace(this, this.constructor);
    } else {
      this.stack = (new Error(message)).stack;
    }
  }