Ensure ErrorExceptions are called from the global namespace

This commit is contained in:
Zach Borboa
2014-01-02 22:21:13 -08:00
parent ca69ece464
commit f2e515d2ea
+2 -2
View File
@@ -34,7 +34,7 @@ class Curl {
public function __construct() {
if (!extension_loaded('curl')) {
throw new ErrorException('cURL library is not loaded');
throw new \ErrorException('cURL library is not loaded');
}
$this->curl = curl_init();
@@ -61,7 +61,7 @@ class Curl {
$curlm_error_code = curl_multi_add_handle($curl_multi, $curl->curl);
if (!($curlm_error_code === CURLM_OK)) {
throw new ErrorException('cURL multi add handle error: ' .
throw new \ErrorException('cURL multi add handle error: ' .
curl_multi_strerror($curlm_error_code));
}
}