Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ulixee
GitHub Repository: ulixee/secret-agent
Path: blob/main/commons/interfaces/TimeoutError.ts
1028 views
1
import { registerSerializableErrorType } from '../TypeSerializer';
2
3
export default class TimeoutError extends Error {
4
constructor(message?: string) {
5
super(message ?? 'Timeout waiting for promise');
6
this.name = 'TimeoutError';
7
}
8
}
9
10
registerSerializableErrorType(TimeoutError);
11
12