]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
hide most DB_DataObject errors
authorEvan Prodromou <evan@status.net>
Thu, 28 Jan 2010 21:26:55 +0000 (16:26 -0500)
committerEvan Prodromou <evan@status.net>
Thu, 28 Jan 2010 21:26:55 +0000 (16:26 -0500)
classes/Memcached_DataObject.php

index e615f23539f41b539710aa6c7a385383cc977b2a..f4dfe631419acafbd78e393098468ac84dcd9f0b 100644 (file)
@@ -547,4 +547,9 @@ class Memcached_DataObject extends DB_DataObject
     {
         common_debug("debugDump: " . common_log_objstring($this));
     }
+
+    function raiseError($message, $type = null, $behaviour = null)
+    {
+        throw new ServerException("DB_DataObject error [$type]: $message");
+    }
 }