Re: Am I supposed to be using SPL?
| From: | Kevin Waterson | Date: | Fri, 02 Jun 2006 17:36:41 +0000 |
| Subject: | Re: Am I supposed to be using SPL? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-237295@lists.php.net to get a copy of this message | ||
This one time, at band camp, "Richard Lynch" <ceo@l-i-e.com> wrote:
> So, of all the things that COULD go wrong, we just assume it's "No
> files Found"???
>
> I don't think I'll ever learn to like SPL or try/catch...
Ok, I think my example was a little too simplistic...
You could of course create multiple catch blocks and test for various errors.
In this simple example the catch might loook like
catch(Exception $e){
echo 'Uh oh: '. $e->getMessage();
}
This would tell you what the problem is perhaps.
Kind regards
Kevin
--
"Democracy is two wolves and a lamb voting on what to have for lunch.
Liberty is a well-armed lamb contesting the vote."