This commit is contained in:
Morten Olsen
2025-08-20 14:58:34 +02:00
parent 3ab2b1969a
commit 9e5081ed9b
8 changed files with 151 additions and 29 deletions

14
src/utils/errors.ts Normal file
View File

@@ -0,0 +1,14 @@
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 };