Pagekit\Kernel\ExceptionHandler::createResponse PHP Method

createResponse() public method

public createResponse ( $exception )
    public function createResponse($exception)
    {
        if ($exception instanceof HttpException) {
            $exception = FlattenException::create($exception, $exception->getCode());
        }
        return parent::createResponse($exception);
    }