summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-01-28 16:26:55 -0500
committerEvan Prodromou <evan@status.net>2010-01-28 16:26:55 -0500
commit513f8be07a22d722b86509e570bee46d028066f2 (patch)
treeff4a0da4db8818b3791edfc6ccb75a0b9a10b18b
parent74a03cbe1fecda9764f826c088331cc4ffbb9433 (diff)
hide most DB_DataObject errors
-rw-r--r--classes/Memcached_DataObject.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/classes/Memcached_DataObject.php b/classes/Memcached_DataObject.php
index e615f2353..f4dfe6314 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");
+ }
}