dblayeroo : Exception must begin with \

git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4647 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
2018-10-27 16:03:06 +00:00
parent 11f44e7c71
commit f490507966

View File

@@ -120,7 +120,7 @@ class dblayeroo
self::$instance[$this->dsn]->setAttribute (\PDO::ATTR_ERRMODE,
\PDO::ERRMODE_EXCEPTION);
}
catch (Exception $e)
catch (\Exception $e)
{
$this->DBException ("PDO error : ".$e->getMessage ());
}
@@ -143,7 +143,7 @@ class dblayeroo
self::$instance[$this->dsn]->setAttribute (\PDO::ATTR_ERRMODE,
\PDO::ERRMODE_EXCEPTION);
}
catch (Exception $e)
catch (\Exception $e)
{
$this->DBException ("PDO error : ".$e->getMessage ());
}
@@ -176,7 +176,7 @@ class dblayeroo
self::$instance[$this->dsn]->setAttribute (\PDO::ATTR_ERRMODE,
\PDO::ERRMODE_EXCEPTION);
}
catch (Exception $e)
catch (\Exception $e)
{
$this->DBException ("PDO error : ".$e->getMessage ());
}