Download src/User/Domain/Exceptions/EmailTakenException.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 519 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/User/Domain/Exceptions/EmailTakenException.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/User/Domain/Exceptions/EmailTakenException.php
-
curl -L -o EmailTakenException.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/User/Domain/Exceptions/EmailTakenException.php
519 Bytes
| declare(strict_types=1); | |
| namespace User\Domain\Exceptions; | |
| use Exception; | |
| use Throwable; | |
| use User\Domain\ValueObjects\Email; | |
| class EmailTakenException extends Exception | |
| { | |
| public function __construct( | |
| public readonly Email $email, | |
| int $code = 0, | |
| Throwable $previous = null | |
| ) { | |
| parent::__construct( | |
| sprintf( | |
| "Email %s is already taken!", | |
| $email->value | |
| ), | |
| $code, | |
| $previous | |
| ); | |
| } | |
| } | |