Files
ldap-identidy/apps/api/src/mail/mail-errors.ts
Bastian Wagner 45a41c2077 features
2026-07-17 14:07:04 +02:00

24 lines
535 B
TypeScript

export class PortalMailTemplateError extends Error {
constructor(
message: string,
readonly templateName: string,
options?: { cause?: unknown },
) {
super(message);
this.name = 'PortalMailTemplateError';
this.cause = options?.cause;
}
}
export class PortalMailDeliveryError extends Error {
constructor(
message: string,
readonly templateName: string,
options?: { cause?: unknown },
) {
super(message);
this.name = 'PortalMailDeliveryError';
this.cause = options?.cause;
}
}