/**
 * CarrierTimeoutException
 *
 * Thrown when a carrier API call times out
 */

export class CarrierTimeoutException extends Error {
  constructor(
    public readonly carrierName: string,
    public readonly timeoutMs: number
  ) {
    super(`Carrier ${carrierName} timed out after ${timeoutMs}ms`);
    this.name = 'CarrierTimeoutException';
    Object.setPrototypeOf(this, CarrierTimeoutException.prototype);
  }
}
