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

@@ -240,7 +240,7 @@ class ACL implements cache_cacheableInterface
$subdef_class = $record->get_databox()->get_subdef_structure()
->get_subdef($record->get_type(), $subdef_name)
->get_class();
} catch (Exception $e) {
} catch (\Exception $e) {
return false;
}
@@ -748,7 +748,7 @@ class ACL implements cache_cacheableInterface
try {
$ret[$sbas_id] = $this->app['phraseanet.appbox']->get_databox((int) $sbas_id);
} catch (Exception $e) {
} catch (\Exception $e) {
}
}
@@ -799,7 +799,7 @@ class ACL implements cache_cacheableInterface
$this->_rights_records_document = $tmp_rights['document'];
return $this;
} catch (Exception $e) {
} catch (\Exception $e) {
}
$sql = 'SELECT sbas_id, record_id, preview, document
@@ -841,7 +841,7 @@ class ACL implements cache_cacheableInterface
$this->is_admin = $this->get_data_from_cache(self::CACHE_IS_ADMIN);
return $this;
} catch (Exception $e) {
} catch (\Exception $e) {
}
$sql = 'SELECT create_db
@@ -935,7 +935,7 @@ class ACL implements cache_cacheableInterface
$this->_limited = $this->get_data_from_cache(self::CACHE_LIMITS_BAS);
return $this;
} catch (Exception $e) {
} catch (\Exception $e) {
}