Re: Mail class error handling
| From: | Justin Patrin | Date: | Thu, 15 Apr 2004 20:57:57 +0000 |
| Subject: | Re: Mail class error handling | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-11882@lists.php.net to get a copy of this message | ||
Chuck Hagenbuch wrote:
Quoting Justin Patrin <papercrane@reversefold.com>:It's generally better to use PEAR's isError method that doing the check yourself. -- paperCrane <Justin Patrin>if (is_a($result, 'PEAR_Error')) {return $result->getMessage();}... if(PEAR::isError($result)) { ...Your point? -chuck -- "Regard my poor demoralized mule!" - Juan Valdez