frontend/.pnpm-store/v3/files/10/a2aed1c4b4d7da0db7ed49a8d824e1163652c4ec331333e54429af14081276d79619d59f246f41191731a33e9ff6d043640f4109bdf28ee69bfd66d1a5f11f

18 lines
346 B
Plaintext

export class FetchBaseError extends Error {
constructor(message, type) {
super(message);
// Hide custom error implementation details from end-users
Error.captureStackTrace(this, this.constructor);
this.type = type;
}
get name() {
return this.constructor.name;
}
get [Symbol.toStringTag]() {
return this.constructor.name;
}
}