src/Http/Request/Exception/UnresolvableHandlerException.php
<?php
declare(strict_types=1);
namespace Peak\Http\Request\Exception;
class UnresolvableHandlerException extends \InvalidArgumentException
{
/**
* @var mixed
*/
private $handler;
/**
* UnresolvableHandlerException constructor.
* @param mixed $handler
*/
public function __construct($handler)
{
parent::__construct('Cannot resolve handler');
$this->handler = $handler;
}
/**
* @return mixed
*/
public function getHandler()
{
return $this->handler;
}
}