for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace League\Tactician\Exception;
use OutOfBoundsException;
/**
* No handler could be found for the given command.
*/
class MissingHandlerException extends OutOfBoundsException implements Exception
{
* @var string
private $commandName;
* @param string $commandName
*
* @return static
public static function forCommand($commandName)
$exception = new static('Missing handler for command ' . $commandName);
$exception->commandName = $commandName;
return $exception;
}
* @return string
public function getCommandName(): string
return $this->commandName;