Files
operator/src/utils/errors.ts
Morten Olsen 9e5081ed9b updates
2025-08-20 14:58:34 +02:00

15 lines
272 B
TypeScript

class NotReadyError extends Error {
#reason?: string;
constructor(reason?: string, message?: string) {
super(message || reason || 'Resource is not ready');
this.#reason = reason;
}
get reason() {
return this.#reason;
}
}
export { NotReadyError };