diff options
author | jayc89 <jamie-cressey@live.co.uk> | 2014-10-07 15:34:08 +0100 |
---|---|---|
committer | jayc89 <jamie-cressey@live.co.uk> | 2014-10-07 15:34:08 +0100 |
commit | 418f88a740300ce1bae5972bdca1cbf46c8cb464 (patch) | |
tree | 9f8801276d1e521ba0b989083ecffb421c06e5d9 | |
parent | 0d11dc62a20555b22416c6cf7dca768c74d7deea (diff) | |
download | php-mysql-pdo-database-class-418f88a740300ce1bae5972bdca1cbf46c8cb464.zip php-mysql-pdo-database-class-418f88a740300ce1bae5972bdca1cbf46c8cb464.tar.gz php-mysql-pdo-database-class-418f88a740300ce1bae5972bdca1cbf46c8cb464.tar.bz2 |
Update Db.class.php
Allow our app to handle exceptions
-rw-r--r-- | Db.class.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Db.class.php b/Db.class.php index b1fb58e..af51ed4 100644 --- a/Db.class.php +++ b/Db.class.php @@ -123,7 +123,7 @@ class DB { # Write into log and display Exception echo $this->ExceptionLog($e->getMessage(), $query ); - die(); + throw new Exception($e->getMessage()); } # Reset the parameters |