Files
system-prompts-and-models-o…/unified-ai-platform/node_modules/node-fetch/src/errors/base.js
dopeuni444 b5a22951ae nhj
more
2025-07-31 12:23:33 +04:00

18 lines
346 B
JavaScript

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;
}
}