<?php

declare(strict_types=1);

namespace App\Exceptions\Onboarding;

use App\Support\Onboarding\OnboardingLifecycleState;
use RuntimeException;

class OnboardingDraftImmutableException extends RuntimeException
{
    public function __construct(
        public readonly int $draftId,
        public readonly OnboardingLifecycleState $lifecycleState,
        string $message = 'This onboarding draft is no longer editable.',
    ) {
        parent::__construct($message);
    }
}
