feat: modular domain driven boilerplate
This commit is contained in:
7
modules/identity/errors.ts
Normal file
7
modules/identity/errors.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { ConflictError } from "@platform/relay";
|
||||
|
||||
export class IdentityEmailClaimedError extends ConflictError {
|
||||
constructor(email: string) {
|
||||
super(`Email '${email}' is already claimed by another identity.`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user