24 lines
535 B
TypeScript
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;
|
|
}
|
|
}
|