getLastError() is now fully obsolete, you can get the same message by calling getLast...
[core.git] / inc / classes / main / database / class_BaseDatabaseWrapper.php
index 4cdbafc019de11f7c3a4e4e9659c1bd0b6933b32..e925f38607e4ca88e9d0bd64d433420ecd7502dc 100644 (file)
@@ -127,6 +127,15 @@ class BaseDatabaseWrapper extends BaseFrameworkSystem {
                return $this->getDatabaseInstance()->getIndexKey();
        }
 
+       /**
+        * Getter for last exception
+        *
+        * @return      $lastException  Last exception or NULL if none occured
+        */
+       public final function getLastException () {
+               return $this->getDatabaseInstance()->getLastException();
+       }
+
        /**
         * Do a "select" query on the current table with the given search criteria and
         * store it in cache for later usage