peakphp/framework

View on GitHub
src/Http/Request/Exception/UnresolvableHandlerException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?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;
    }
}