rename to core

This commit is contained in:
2025-12-15 13:46:07 +01:00
parent aedf58643d
commit 5c22f8820c
559 changed files with 415 additions and 767 deletions

View File

@@ -0,0 +1,19 @@
import type { IDomainError, CommonDomainErrorKind } from '@gridpilot/shared/errors';
/**
* Domain Error: NotificationDomainError
*
* Implements the shared IDomainError contract for notification domain failures.
*/
export class NotificationDomainError extends Error implements IDomainError<CommonDomainErrorKind> {
readonly name = 'NotificationDomainError';
readonly type = 'domain' as const;
readonly context = 'notifications';
readonly kind: CommonDomainErrorKind;
constructor(message: string, kind: CommonDomainErrorKind = 'validation') {
super(message);
this.kind = kind;
Object.setPrototypeOf(this, new.target.prototype);
}
}