From ae66a8dea79c8d91042ba81889e5f6108cf82516 Mon Sep 17 00:00:00 2001 From: Tyler Antonio <tantonio@ualberta.ca> Date: Wed, 22 Jul 2015 09:22:03 -0600 Subject: [PATCH] Fixed namespace for PDOException/Exception --- lib/SimpleSAML/Database.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/SimpleSAML/Database.php b/lib/SimpleSAML/Database.php index 818ec2fe5..2e338f1be 100644 --- a/lib/SimpleSAML/Database.php +++ b/lib/SimpleSAML/Database.php @@ -125,8 +125,8 @@ class Database { $db->setAttribute(\PDO::ATTR_ERRMODE, \PDO::ERRMODE_EXCEPTION); return $db; - } catch(PDOException $e){ - throw new Exception("Database error: ". $e->getMessage()); + } catch(\PDOException $e){ + throw new \Exception("Database error: ". $e->getMessage()); } } @@ -186,8 +186,8 @@ class Database { $query->execute(); return $query; - } catch (PDOException $e){ - throw new Exception("Database error: ". $e->getMessage()); + } catch (\PDOException $e){ + throw new \Exception("Database error: ". $e->getMessage()); } } @@ -209,8 +209,8 @@ class Database { $query = $db->exec($stmt); return $query; - } catch (PDOException $e){ - throw new Exception("Database error: ". $e->getMessage()); + } catch (\PDOException $e){ + throw new \Exception("Database error: ". $e->getMessage()); } } -- GitLab