Debian Codegraph @

node_modules/@sigstore/tuf/dist/error.js

raw
1 "use strict";
2 Object.defineProperty(exports, "__esModule", { value: true });
3 exports.TUFError = void 0;
4 class TUFError extends Error {
5 code;
6 cause;
7 constructor({ code, message, cause, }) {
8 super(message);
9 this.code = code;
10 this.cause = cause;
11 this.name = this.constructor.name;
12 }
13 }
14 exports.TUFError = TUFError;