src/Exception/HttpException.php
public function request(Request $request = null)
    {
        if (null === $request)
        {
            return $this->_request;
        }
        $this->_request = $request;
        return $this;
    }
public function request(Request $request = null)
    {
        if (null === $request)
        {
            return $this->_request;
        }
        $this->_request = $request;
        return $this;
    }
保存当前请求对象

@param  Request $request
@return HttpException