File size: 466 Bytes
f778c12 | 1 2 3 4 5 6 7 8 9 10 11 | /** An operator error identified by cron input validation or a domain operation. */
export class CronCliError extends Error {
readonly originalError?: Error;
constructor(message: string | Error, options?: ErrorOptions) {
super(typeof message === "string" ? message : message.message, options);
// Keep diagnostics from external input readers intact in both output modes.
this.originalError = typeof message === "string" ? undefined : message;
}
}
|