constructor()

in packages/svg-mixer-utils/lib/resolve-error.js [14:27]


  constructor(path, code) {
    super();
    this.name = this.constructor.name;

    if (Error.captureStackTrace) {
      Error.captureStackTrace(this, this.constructor);
    } else {
      this.stack = (new Error()).stack;
    }

    this.code = code;
    this.path = path;
    this.message = format(MESSAGES[code], path);
  }