20 lines
480 B
PHP
20 lines
480 B
PHP
<?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);
|
|
}
|
|
}
|