/**
 * RateQuoteExpiredException
 *
 * Thrown when attempting to use an expired rate quote
 */

export class RateQuoteExpiredException extends Error {
  constructor(
    public readonly rateQuoteId: string,
    public readonly expiredAt: Date
  ) {
    super(`Rate quote ${rateQuoteId} expired at ${expiredAt.toISOString()}`);
    this.name = 'RateQuoteExpiredException';
    Object.setPrototypeOf(this, RateQuoteExpiredException.prototype);
  }
}
