<?php

namespace App\Exceptions;

use App\Models\TicketOrder;
use RuntimeException;

/** 事务内发现同 trace 订单已存在，交由 {@see TicketPlacementService} 做幂等回放。 */
final class IdempotentTicketReplayException extends RuntimeException
{
    public function __construct(
        public readonly TicketOrder $order,
    ) {
        parent::__construct('idempotent_ticket_replay');
    }
}
