src/OpenBuildings/Monetary/CURL.php
protected function _handle_error($curl)
	{
		// Get the error code and message
		$code  = curl_errno($curl);
		$error = curl_error($curl);

		$this->_close($curl);

		throw new Exception_Source(
			'Fetching :source_name data failed: :error (:code)',
			'remote',
			array(
				':error' => $error,
				':code' => $code
			)
		);
	}
protected function _handle_error($curl)
	{
		// Get the error code and message
		$code  = curl_errno($curl);
		$error = curl_error($curl);

		$this->_close($curl);

		throw new Exception_Source(
			'Fetching :source_name data failed: :error (:code)',
			'remote',
			array(
				':error' => $error,
				':code' => $code
			)
		);
	}
protected function _handle_error ( $ curl ) { // Get the error code and message $ code = curl_errno ( $ curl ) ; $ error = curl_error ( $ curl ) ; $ this -> _close ( $ curl ) ; throw new Exception_Source ( 'Fetching :source_name data failed: :error (:code)' , 'remote' , array ( ':error' => $ error , ':code' => $ code ) ) ; }
Handle cURL errors
@param  resource $curl cURL resource with an error
@throws Exception_Source with the error message and error code
Handle cURL errors