It gets rethrown when you DON'T handle it. The whole idea behind a redesigned exception system is to have distinct types of errors. I.e. you'd want to handle a "disk full exception" but not a "out of memory" error since that, if anything, should be handle don the top level.
/ David Hedbor
Previous text:
2003-10-02 17:34: Subject: Re: throw or return
On Thu, Oct 02, 2003 at 05:25:03PM +0200, Mirar @ Pike developers forum wrote:
Exactly. And since Pike programmers almost by definition are lazy, lets make the default behaviour what you almost always want to do, that is rethrow the error...? :-)
Uhm... It seems logical, but... it is a bit unlogical... As I said before, there is no point to handle an error to rethrow it... Perhaps it makes sense to invent some mandatory statement to explicitly specify an action - say, rethrow or escalate and dismiss. Using of break and continue is bad option, IMHO...
Regards, /Al
/ Brevbäraren