// ╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═╗ ╔═══════╗╔═══════╗╔═══════╗ ╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔═══════╗ ╔═══════╗╔═══════╗ // ╚══╗ ╔══╝║ ╔═════╝║ ╔╗ ╔╗ ║║ ╔═══╗ ║║ ║ ║ ╔═══╗ ║╚══╗ ╔══╝║ ╔═════╝ ║ ╔═════╝║ ╔═══╗ ║║ ╔═══╗ ║║ ╔═══╗ ║║ ╔═══╗ ║║ ╔═════╝ ╚══╗ ╔══╝║ ╔═════╝ // ║ ║ ║ ╚═════╗║ ║║ ║║ ║║ ╚═══╝ ║║ ║ ║ ╚═══╝ ║ ║ ║ ║ ╚═════╗╔═══════╗║ ╚═════╗║ ╚═══╝ ║║ ╚═══╝ ║║ ║ ║ ║║ ╚═══╝ ║║ ╚═════╗ ║ ║ ║ ╚═════╗ // ║ ║ ║ ╔═════╝║ ║║ ║║ ║║ ╔═════╝║ ║ ║ ╔═══╗ ║ ║ ║ ║ ╔═════╝╚═══════╝║ ╔═════╝║ ╔═╗ ╔═╝║ ╔═╗ ╔═╝║ ║ ║ ║║ ╔═╗ ╔═╝╚═════╗ ║ ║ ║ ╚═════╗ ║ // ║ ║ ║ ╚═════╗║ ║║ ║║ ║║ ║ ║ ╚═════╗║ ║ ║ ║ ║ ║ ║ ╚═════╗ ║ ╚═════╗║ ║ ║ ╚═╗║ ║ ║ ╚═╗║ ╚═══╝ ║║ ║ ║ ╚═╗╔═════╝ ║╔═╗ ║ ║ ╔═════╝ ║ // ╚═╝ ╚═══════╝╚═╝╚═╝╚═╝╚═╝ ╚═══════╝╚═╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═══════╝╚═╝ ╚═══╝╚═╝ ╚═══╝╚═══════╝╚═╝ ╚═══╝╚═══════╝╚═╝ ╚═╝ ╚═══════╝ // ╔═╗ ╔═╗╔═══════╗╔═══════╗╔═══════╗╔═══════╗╔══════╗ ╔═╗ ╔═══════╗╔═══════╗ // ║ ║ ║ ║║ ╔═══╗ ║║ ╔═══╗ ║╚══╗ ╔══╝║ ╔═══╗ ║║ ╔══╗ ║ ║ ║ ║ ╔═════╝║ ╔═════╝ // ║ ╚╗ ╔╝ ║║ ╚═══╝ ║║ ╚═══╝ ║ ║ ║ ║ ╚═══╝ ║║ ╚══╝ ╚╗║ ║ ║ ╚═════╗║ ╚═════╗ // ╚╗ ║ ║ ╔╝║ ╔═══╗ ║║ ╔═╗ ╔═╝ ║ ║ ║ ╔═══╗ ║║ ╔═══╗ ║║ ║ ║ ╔═════╝╚═════╗ ║ // ║ ╚═╝ ║ ║ ║ ║ ║║ ║ ║ ╚═╗╔══╝ ╚══╗║ ║ ║ ║║ ╚═══╝ ║║ ╚═════╗║ ╚═════╗╔═════╝ ║ // ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚═══════╝╚═╝ ╚═╝╚═══════╝╚═══════╝╚═══════╝╚═══════╝ export class InvalidMailgunTemplateVariableError extends Error { constructor(message = 'The referenced Mailgun template variables is invalid') { super(message); this.name = 'InvalidMailgunTemplateVariableError'; } } export function throwInvalidMailgunTemplateVariableError(message?: string) { throw new InvalidMailgunTemplateVariableError(message); } // ╔════╗╔═╗╔═══════╗╔═══════╗╔═══════╗ // ║ ╔╗ ║║ ║║ ╔═══╗ ║║ ╔╗ ╔╗ ║║ ╔═════╝ // ║ ║║ ║║ ║║ ╚═══╝ ║║ ║║ ║║ ║║ ╚═════╗ // ║ ║║ ║║ ║║ ╔═══╗ ║║ ║║ ║║ ║║ ╔═════╝ // ║ ║║ ╚╝ ║║ ║ ║ ║║ ║║ ║║ ║║ ╚═════╗ // ╚═╝╚════╝╚═╝ ╚═╝╚═╝╚═╝╚═╝╚═══════╝ export class InvalidMailgunTemplateNameError extends Error { constructor(message = 'The referenced Mailgun template name is invalid') { super(message); this.name = 'InvalidMailgunTemplateNameError'; } } export function throwInvalidMailgunTemplateNameError(message?: string) { throw new InvalidMailgunTemplateNameError(message); }