protected function verifyResult(\Buzz\Message\Response $response, $url)
    {
        if ($response->getStatusCode() !== 200) {
            throw new \Exception('Request to "' . $url . '" failed', 1364061673);
        }

        return $response;
    }
protected function verifyResult(\Buzz\Message\Response $response, $url)
    {
        if ($response->getStatusCode() !== 200) {
            throw new \Exception('Request to "' . $url . '" failed', 1364061673);
        }

        return $response;
    }
protected function verifyResult ( \ Buzz \ Message \ Response $ response , $ url ) { if ( $ response -> getStatusCode ( ) !== 200 ) { throw new \ Exception ( 'Request to "' . $ url . '" failed' , 1364061673 ) ; } return $ response ; }
Verifies the last request.
If the last request was not successful, it will be throw an exception.

@param \Buzz\Message\Response $response The response object from the last reques
@param string $url The url which was requested
@return \Buzz\Message\Response
@throws \Exception
Verifies the last request . If the last request was not successful it will be throw an exception .