$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);
}
$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);
}
$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);
}
$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);
}
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