From 264b6be3f2bff5319ce9b2d578408db40826eb20 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Sat, 24 Oct 2009 12:39:10 -0400 Subject: [PATCH] Horde_Http_Client_Exception -> Horde_Http_Exception --- framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Basic.php | 4 ++-- framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Oauth.php | 4 ++-- framework/Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Basic.php b/framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Basic.php index f085172d6..52c7e8b77 100644 --- a/framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Basic.php +++ b/framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Basic.php @@ -30,7 +30,7 @@ class Horde_Service_Twitter_Request_Basic extends Horde_Service_Twitter_Request $client = new Horde_Http_Client(); try { $response = $client->get($url, array('Authorization' => $this->_twitter->auth->buildAuthorizationHeader())); - } catch (Horde_Http_Client_Exception $e) { + } catch (Horde_Http_Exception $e) { throw new Horde_Service_Twitter_Exception($e); } @@ -50,7 +50,7 @@ class Horde_Service_Twitter_Request_Basic extends Horde_Service_Twitter_Request $client = new Horde_Http_Client(); try { $response = $client->post($url, $params, array('Authorization' => $this->_twitter->auth->buildAuthorizationHeader())); - } catch (Horde_Http_Client_Exception $e) { + } catch (Horde_Http_Exception $e) { throw new Horde_Service_Twitter_Exception($e); } diff --git a/framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Oauth.php b/framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Oauth.php index 87702f939..cfe213e9e 100644 --- a/framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Oauth.php +++ b/framework/Service_Twitter/lib/Horde/Service/Twitter/Request/Oauth.php @@ -34,7 +34,7 @@ class Horde_Service_Twitter_Request_Oauth extends Horde_Service_Twitter_Request $client = new Horde_Http_Client(); try { $response = $client->get($url, array('Authorization' => $request->buildAuthorizationHeader('Twitter API'))); - } catch (Horde_Http_Client_Exception $e) { + } catch (Horde_Http_Exception $e) { throw new Horde_Service_Twitter_Exception($e); } @@ -64,7 +64,7 @@ class Horde_Service_Twitter_Request_Oauth extends Horde_Service_Twitter_Request $client = new Horde_Http_Client(); try { $response = $client->post($url, $params, array('Authorization' => $request->buildAuthorizationHeader('Twitter API'))); - } catch (Horde_Http_Client_Exception $e) { + } catch (Horde_Http_Exception $e) { throw new Horde_Service_Twitter_Exception($e); } diff --git a/framework/Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php b/framework/Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php index cf1fd0b8c..d81ec0ee1 100644 --- a/framework/Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php +++ b/framework/Service_Vimeo/lib/Horde/Service/Vimeo/Simple.php @@ -116,7 +116,7 @@ class Horde_Service_Vimeo_Simple extends Horde_Service_Vimeo { try { $response = $this->_http_client->request('GET', $url); - } catch (Horde_Http_Client_Exception $e) { + } catch (Horde_Http_Exception $e) { // TODO: // Some videos it seems are not found via oembed? This appears to be // a fringe case, and only happens when I'm attempting to load -- 2.11.0