From 77933d8177d7b9dceac1adc2f77ec82e5b6e3a84 Mon Sep 17 00:00:00 2001 From: Tyler Antonio <tantonio@ualberta.ca> Date: Tue, 21 Jul 2015 16:10:08 -0600 Subject: [PATCH] Reverted the exceptions --- lib/SimpleSAML/Database.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/SimpleSAML/Database.php b/lib/SimpleSAML/Database.php index 5889a17fa..818ec2fe5 100644 --- a/lib/SimpleSAML/Database.php +++ b/lib/SimpleSAML/Database.php @@ -126,7 +126,7 @@ class Database { return $db; } catch(PDOException $e){ - throw new DBException("Database error: ". $e->getMessage()); + throw new Exception("Database error: ". $e->getMessage()); } } @@ -187,7 +187,7 @@ class Database { return $query; } catch (PDOException $e){ - throw new DBException("Database error: ". $e->getMessage()); + throw new Exception("Database error: ". $e->getMessage()); } } @@ -210,7 +210,7 @@ class Database { return $query; } catch (PDOException $e){ - throw new DBException("Database error: ". $e->getMessage()); + throw new Exception("Database error: ". $e->getMessage()); } } -- GitLab