Re: How can I detect an exception without using try/catch?
| From: | 9el | Date: | Fri, 24 Apr 2009 11:18:21 +0000 |
| Subject: | Re: How can I detect an exception without using try/catch? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-291917@lists.php.net to get a copy of this message | ||
>
>
> What would be nice is a function like get_current_exception() that
> would either return the current exception object, or return false
> if there is no exception.
>
> I guess the try catch pair works like this:
you try to run a part of script which you know it could be under errors
You tell your boy to play(but a bulley comes often):
try {
Go boy try to play
}
catch (street_bulley_came) {
do not cry or dont swear at the bulley dont be afraid
}
Lenin
www.twitter.com/nine_L