mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
Avoid errors by explicitely namespacing root exception
This commit is contained in:
@@ -334,7 +334,7 @@ class Bridge_Account
|
||||
if ( ! isset($apis[$api_id])) {
|
||||
try {
|
||||
$apis[$api_id] = new Bridge_Api($app, $api_id);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
@@ -436,7 +436,7 @@ class Bridge_Api
|
||||
$ret = $action($this);
|
||||
|
||||
return $ret;
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
$this->get_connector()->handle_Exception($e);
|
||||
|
||||
if ($e instanceof Bridge_Exception_ActionAuthNeedReconnect) {
|
||||
@@ -532,7 +532,7 @@ class Bridge_Api
|
||||
foreach ($rs as $row) {
|
||||
try {
|
||||
$results[] = new Bridge_Api($app, $row['id']);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
|
||||
}
|
||||
}
|
||||
|
@@ -469,7 +469,7 @@ class Bridge_Api_Flickr extends Bridge_Api_Abstract implements Bridge_Api_Interf
|
||||
$this->get_element_from_id($ticket["dist_id"], $element->get_type());
|
||||
$element->set_dist_id($ticket["dist_id"]);
|
||||
}
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
return self::UPLOAD_STATE_FAILED;
|
||||
}
|
||||
|
||||
|
@@ -301,7 +301,7 @@ class Bridge_Element
|
||||
if (! $this->connector_element) {
|
||||
try {
|
||||
$this->connector_element = $this->account->get_api()->get_element_from_id($this->dist_id, $this->type);
|
||||
} catch (Exception $e) {
|
||||
} catch (\Exception $e) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user