mirror of
https://github.com/morten-olsen/homelab-operator.git
synced 2026-02-08 01:36:28 +01:00
15 lines
272 B
TypeScript
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 };
|