Re: Is it possible to end the outermost function from an inner function?
- From: "-Lost" <maventheextrawords@xxxxxxxxxx>
- Date: Tue, 30 Sep 2008 15:43:29 -0500
Response to Erwin Moller
<Since_humans_read_this_I_am_spammed_too_much@xxxxxxxxxxxxxxxx>:
<snip>
Maybe have a look at try/catch.
Make sure an exception/error occurs when the check fails.
Maybe throw it yourself:
throw new Exception("Horriblecode found a problem");
When you don't catch the exception, all was fine.
Neat idea for sure, but I'm afraid that would introduce a fair
amount of overhead -- not something I want to do as a first
impression.
I would like to ask though, how would a single try-catch in a
function call be leveraged to cease an outermost function?
I can visualize it as code placed within each function that I need
to verify the data of, but not as a single function instance with
only calls to said function (in each bad function). I hope that
made sense.
Thanks for the input!
--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
.
- References:
- Prev by Date: Re: PHP COM and Excel
- Next by Date: Re: Is it possible to end the outermost function from an inner function?
- Previous by thread: Re: Is it possible to end the outermost function from an inner function?
- Next by thread: Installing zend fraemwork on Xampp *******Caution Newbie*************
- Index(es):