Avoid errors by explicitely namespacing root exception

This commit is contained in:
Romain Neutron
2014-02-20 11:28:31 +01:00
parent fab9a64ae0
commit 2af21c064c
73 changed files with 164 additions and 164 deletions

View File

@@ -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) {
}
}