features
This commit is contained in:
23
apps/api/src/mail/mail-errors.ts
Normal file
23
apps/api/src/mail/mail-errors.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user