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