core tests
Some checks failed
CI / lint-typecheck (push) Failing after 4m52s
CI / tests (push) Has been skipped
CI / contract-tests (push) Has been skipped
CI / e2e-tests (push) Has been skipped
CI / comment-pr (push) Has been skipped
CI / commit-types (push) Has been skipped

This commit is contained in:
2026-01-25 11:38:16 +01:00
parent 3db2209d2a
commit 9f219c0181
6 changed files with 34 additions and 7 deletions

View File

@@ -7,6 +7,7 @@ export abstract class AdminDomainError extends Error implements DomainError<Comm
constructor(message: string) {
super(message);
this.name = 'AdminDomainError';
Object.setPrototypeOf(this, new.target.prototype);
}
}
@@ -19,6 +20,7 @@ export class AdminDomainValidationError
constructor(message: string) {
super(message);
this.name = 'AdminDomainValidationError';
}
}
@@ -30,6 +32,7 @@ export class AdminDomainInvariantError
constructor(message: string) {
super(message);
this.name = 'AdminDomainInvariantError';
}
}
@@ -41,5 +44,6 @@ export class AuthorizationError
constructor(message: string) {
super(message);
this.name = 'AuthorizationError';
}
}