添加filesystem

This commit is contained in:
2025-04-14 18:04:04 +08:00
parent 3b2e72127f
commit b76a685988
18 changed files with 1173 additions and 25 deletions

View File

@ -0,0 +1,24 @@
// eslint-disable-next-line import/prefer-default-export, max-classes-per-file
export class WarpTokenError {
error: Error;
constructor(error: Error) {
this.error = error;
}
}
export function isWarpTokenError(error: any): error is WarpTokenError {
return error instanceof WarpTokenError;
}
export class WarpNetworkError {
error: Error;
constructor(error: Error) {
this.error = error;
}
}
export function isNetworkError(error: any): error is WarpNetworkError {
return error instanceof WarpNetworkError;
}