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

@@ -72,7 +72,7 @@ class databox_cgu
if ($userValidation)
$terms[$name] = array('sbas_id' => $databox->get_sbas_id(), 'terms' => $value, 'date' => $update);
} catch (Exception $e) {
} catch (\Exception $e) {
}
}

View File

@@ -282,7 +282,7 @@ class databox_field implements cache_cacheableInterface
if ( ! isset(self::$_instance[$instance_id]) || (self::$_instance[$instance_id] instanceof self) === false) {
try {
self::$_instance[$instance_id] = $databox->get_data_from_cache($cache_key);
} catch (Exception $e) {
} catch (\Exception $e) {
self::$_instance[$instance_id] = new self($app, $databox, $id);
$databox->set_data_to_cache(self::$_instance[$instance_id], $cache_key);
}

View File

@@ -143,7 +143,7 @@ class databox_status
foreach ($sbas_ids as $databox) {
try {
$statuses[$databox->get_sbas_id()] = $databox->get_statusbits();
} catch (Exception $e) {
} catch (\Exception $e) {
}
}
@@ -172,7 +172,7 @@ class databox_status
}
try {
$statuses[$databox->get_sbas_id()] = $databox->get_statusbits();
} catch (Exception $e) {
} catch (\Exception $e) {
}
}