mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
20 lines
464 B
PHP
20 lines
464 B
PHP
<?php
|
|
declare(strict_types=1);
|
|
|
|
namespace common\components\Authentication\Exceptions;
|
|
|
|
use common\models\Account;
|
|
use Exception;
|
|
use Throwable;
|
|
|
|
final class AccountNotActivatedException extends Exception implements AuthenticationException {
|
|
|
|
public function __construct(
|
|
public readonly Account $account,
|
|
?Throwable $previous = null,
|
|
) {
|
|
parent::__construct('The account has not been activated yet', previous: $previous);
|
|
}
|
|
|
|
}
|