mirror of
https://github.com/deployphp/action.git
synced 2025-06-28 20:24:14 +00:00
17 lines
346 B
JavaScript
17 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;
|
|
}
|
|
}
|