Re: Q on class failure...
| From: | jsWalter | Date: | Mon, 22 Sep 2003 17:27:41 +0000 |
| Subject: | Re: Q on class failure... | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163510@lists.php.net to get a copy of this message | ||
"Curt Zirzow" <php-general@zirzow.dyndns.org> wrote in message
news:20030922075550.GW54958@bagend.shire...
> The constructor should be as quick as possible and have as little
> logic as possible. What kind of failure are you trying to catch?
not really trying to 'catch' a failure.
I have to parse the given string format and determine if that format is
valid.
If yes, then I can do more work and return an instance.
If no, I wanted to return a NULL. That way I know it failed.
Maybe I should be looking at PEAR::Error istead of a NULL on faliure.
Thanks
Walter