diff --git a/src/Embedly/Embedly.php b/src/Embedly/Embedly.php index 400539e..7fc3ee8 100644 --- a/src/Embedly/Embedly.php +++ b/src/Embedly/Embedly.php @@ -100,7 +100,7 @@ protected function parse_host($host) preg_match('/^(https?:\/\/)?([^\/]+)(:\d+)?\/?$/', $host, $matches); if (!$matches) { - throw new Error(sprintf('invalid host %s', host)); + throw new \Exception(sprintf('invalid host %s', host)); } $hostname = $matches[2]; @@ -311,7 +311,7 @@ protected function curlExec(&$ch) { $res = curl_exec($ch); if (false === $res) { - throw new Exception(curl_error($ch), curl_errno($ch)); + throw new \Exception(curl_error($ch), curl_errno($ch)); } return $res; }