Download src/Shared/Infrastructure/CommandBus/Exception/NoHandlerFoundException.php from pnacorp/AIKEEDO: direct link, hf CLI and curl.
- Browser
- Download file 746 Bytes
-
https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Shared/Infrastructure/CommandBus/Exception/NoHandlerFoundException.php
- Command line
-
hf download hf://pnacorp/AIKEEDO/src/Shared/Infrastructure/CommandBus/Exception/NoHandlerFoundException.php
-
curl -L -o NoHandlerFoundException.php https://huggingface.co/pnacorp/AIKEEDO/resolve/main/src/Shared/Infrastructure/CommandBus/Exception/NoHandlerFoundException.php
746 Bytes
| declare(strict_types=1); | |
| namespace Shared\Infrastructure\CommandBus\Exception; | |
| use Exception; | |
| use Throwable; | |
| class NoHandlerFoundException extends Exception | |
| { | |
| /** | |
| * @param object $cmd The command/query that was not handled | |
| * @param int $code The error code (default 0) | |
| * @param null|Throwable $previous The previous exception (default null) | |
| * @return void | |
| */ | |
| public function __construct( | |
| object $cmd, | |
| int $code = 0, | |
| ?Throwable $previous = null | |
| ) { | |
| // Set the message for the exception | |
| $message = sprintf( | |
| 'No handler found for command/query %s', | |
| $cmd::class | |
| ); | |
| parent::__construct($message, $code, $previous); | |
| } | |
| } | |