slopus--happy
98e40dac97
CLI Smoke Test / smoke-test-linux (20) (push) Has been cancelled
CLI Smoke Test / smoke-test-linux (24) (push) Has been cancelled
CLI Smoke Test / smoke-test-windows (20) (push) Has been cancelled
CLI Smoke Test / smoke-test-windows (24) (push) Has been cancelled
Expo App TypeScript typecheck / typecheck (push) Has been cancelled
10 行
301 B
TypeScript
10 行
301 B
TypeScript
export class HappyError extends Error {
|
|
readonly canTryAgain: boolean;
|
|
|
|
constructor(message: string, canTryAgain: boolean) {
|
|
super(message);
|
|
this.canTryAgain = canTryAgain;
|
|
this.name = 'RetryableError';
|
|
Object.setPrototypeOf(this, HappyError.prototype);
|
|
}
|
|
} |