protected function checkForCurlErrors()
    {
        if (curl_errno($this->getHandle())) {
            $exceptionText = "Connection Error: " . curl_error($this->getHandle());
            throw new ConnectionException($exceptionText);
        }
    }
protected function checkForCurlErrors()
    {
        if (curl_errno($this->getHandle())) {
            $exceptionText = "Connection Error: " . curl_error($this->getHandle());
            throw new ConnectionException($exceptionText);
        }
    }
protected function checkForCurlErrors ( ) { if ( curl_errno ( $ this -> getHandle ( ) ) ) { $ exceptionText = "Connection Error: " . curl_error ( $ this -> getHandle ( ) ) ; throw new ConnectionException ( $ exceptionText ) ; } }
checks if a  curl error occurred

@return void
@throws ConnectionException
checks if a curl error occurred