From: Evan Prodromou Date: Thu, 28 Jan 2010 21:26:55 +0000 (-0500) Subject: hide most DB_DataObject errors X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=513f8be07a22d722b86509e570bee46d028066f2;p=quix0rs-gnu-social.git hide most DB_DataObject errors --- diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php index e615f23539..f4dfe63141 100644 --- a/classes/Memcached_DataObject.php +++ b/classes/Memcached_DataObject.php @@ -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"); + } }