DataObjects and PEAR Error

From: Date: Fri, 19 Aug 2005 00:26:18 +0000
Subject: DataObjects and PEAR Error
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-20471@lists.php.net to get a copy of this message
Will DB_DataObject::insert() return a PEAR error every time if there is an error? For example, is it safe to say I can do this: $result = $dataobject->insert(); if (PEAR::isError($result) { throw new DBException($result->getMessage()); }

« previous php.pear.general (#20471) next »