Files
webmail/lib/jmap/reschedule-error.ts
T

12 lines
424 B
TypeScript

/**
* A reschedule canceled the original submission, could not create the
* replacement, and put the original back. The message still goes out at its
* old time, under a new submission id.
*/
export class RescheduleRestoredError extends Error {
constructor(message: string, readonly restoredSubmissionId: string, readonly restoredSendAt?: string) {
super(message);
this.name = 'RescheduleRestoredError';
}
}