package com.ruoyi.app.flashdelivery.exception;

import com.ruoyi.app.flashdelivery.dto.FlashDeliveryQuoteView;

/** 创建订单时客户端报价已过期，携带服务端最新报价供用户重新确认。 */
public class FlashDeliveryQuoteChangedException extends RuntimeException {
    private static final long serialVersionUID = 1L;

    private final FlashDeliveryQuoteView latestQuote;

    public FlashDeliveryQuoteChangedException(FlashDeliveryQuoteView latestQuote) {
        this.latestQuote = latestQuote;
    }

    public FlashDeliveryQuoteView getLatestQuote() {
        return latestQuote;
    }
}
