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