| 1 | <?php |
||
| 9 | class VerifyAuthenticationException extends RuntimeException |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | private $errorCode; |
||
| 15 | /** |
||
| 16 | * @var string |
||
| 17 | */ |
||
| 18 | private $publicMessage; |
||
| 19 | |||
| 20 | 5 | public function __construct( |
|
| 31 | |||
| 32 | 5 | public static function withError(string $errorCode, string $publicMessage, Throwable $prev = null): self |
|
| 42 | |||
| 43 | 1 | public function getErrorCode(): string |
|
| 47 | |||
| 48 | 1 | public function getPublicMessage(): string |
|
| 52 | } |
||
| 53 |