<?php

declare(strict_types=1);

namespace App\Exceptions\Onboarding;

use RuntimeException;

class OnboardingDraftConflictException extends RuntimeException
{
    public function __construct(
        public readonly int $draftId,
        public readonly int $expectedVersion,
        public readonly int $actualVersion,
        string $message = 'This onboarding draft changed in another tab or session.',
    ) {
        parent::__construct($message);
    }
}
