Database result added, SqlException added
[shipsimu.git] / inc / classes / middleware / database / class_DatabaseConnection.php
index ebb6933556de1731255326236e34a8b816da5217..74196bc628b37dc82d5e2e1245f6b033a582c073 100644 (file)
@@ -180,6 +180,16 @@ class DatabaseConnection extends BaseMiddleware implements DatabaseConnector, Li
                // Return the result
                return $result;
        }
+
+       /**
+        * Getter for last exception
+        *
+        * @return      $exceptionInstance      Last thrown exception
+        */
+       public final function getLastException () {
+               $exceptionInstance = $this->dbLayer->getLastException();
+               return $exceptionInstance;
+       }
 }
 
 // [EOF]