// ╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═╗ ╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═══════╗ ╔═══════╗╔═══════╗ // ║ ╔═════╝║ ╔╗ ╔╗ ║║ ╔═══╗ ║╚══╗ ╔══╝║ ║ ║ ╔═════╝║ ╔═══╗ ║║ ╔═══╗ ║║ ╔═══╗ ║║ ╔═══╗ ║║ ╔═════╝ ╚══╗ ╔══╝║ ╔═════╝ // ║ ╚═════╗║ ║║ ║║ ║║ ╚═══╝ ║ ║ ║ ║ ║ ╔═══════╗║ ╚═════╗║ ╚═══╝ ║║ ╚═══╝ ║║ ║ ║ ║║ ╚═══╝ ║║ ╚═════╗ ║ ║ ║ ╚═════╗ // ║ ╔═════╝║ ║║ ║║ ║║ ╔═══╗ ║ ║ ║ ║ ║ ╚═══════╝║ ╔═════╝║ ╔═╗ ╔═╝║ ╔═╗ ╔═╝║ ║ ║ ║║ ╔═╗ ╔═╝╚═════╗ ║ ║ ║ ╚═════╗ ║ // ║ ╚═════╗║ ║║ ║║ ║║ ║ ║ ║╔══╝ ╚══╗║ ╚═════╗ ║ ╚═════╗║ ║ ║ ╚═╗║ ║ ║ ╚═╗║ ╚═══╝ ║║ ║ ║ ╚═╗╔═════╝ ║╔═╗ ║ ║ ╔═════╝ ║ // ╚═══════╝╚═╝╚═╝╚═╝╚═╝ ╚═╝╚═══════╝╚═══════╝ ╚═══════╝╚═╝ ╚═══╝╚═╝ ╚═══╝╚═══════╝╚═╝ ╚═══╝╚═══════╝╚═╝ ╚═╝ ╚═══════╝ // ╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═══════╗ // ║ ╔═══╗ ║╚╗ ╔══╗ ║╚╗ ╔══╗ ║║ ╔═══╗ ║║ ╔═════╝║ ╔═════╝║ ╔═════╝ // ║ ╚═══╝ ║ ║ ║ ║ ║ ║ ║ ║ ║║ ╚═══╝ ║║ ╚═════╗║ ╚═════╗║ ╚═════╗ // ║ ╔═══╗ ║ ║ ║ ║ ║ ║ ║ ║ ║║ ╔═╗ ╔═╝║ ╔═════╝╚═════╗ ║╚═════╗ ║ // ║ ║ ║ ║╔╝ ╚══╝ ║╔╝ ╚══╝ ║║ ║ ║ ╚═╗║ ╚═════╗╔═════╝ ║╔═════╝ ║ // ╚═╝ ╚═╝╚═══════╝╚═══════╝╚═╝ ╚═══╝╚═══════╝╚═══════╝╚═══════╝ export class InvalidEmailAddressError extends Error { constructor(message = 'The referenced email address is invalid') { super(message); this.name = 'InvalidEmailAddressError'; } } export function throwInvalidEmailAddressError(message?: string) { throw new InvalidEmailAddressError(message); } // ╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔════╗╔═╗ // ╚╗ ╔══╗ ║║ ╔═══╗ ║║ ╔╗ ╔╗ ║║ ╔═══╗ ║╚══╗ ╔══╝║ ╔╗ ║║ ║ // ║ ║ ║ ║║ ║ ║ ║║ ║║ ║║ ║║ ╚═══╝ ║ ║ ║ ║ ║║ ║║ ║ // ║ ║ ║ ║║ ║ ║ ║║ ║║ ║║ ║║ ╔═══╗ ║ ║ ║ ║ ║║ ║║ ║ // ╔╝ ╚══╝ ║║ ╚═══╝ ║║ ║║ ║║ ║║ ║ ║ ║╔══╝ ╚══╗║ ║║ ╚╝ ║ // ╚═══════╝╚═══════╝╚═╝╚═╝╚═╝╚═╝ ╚═╝╚═══════╝╚═╝╚════╝ export class InvalidEmailDomainNameError extends Error { constructor(message = 'The referenced email domain name is invalid') { super(message); this.name = 'InvalidEmailDomainNameError'; } } export function throwInvalidDomainNameError(message?: string) { throw new InvalidEmailDomainNameError(message); }