If you want to loop back to the try block again then I think you should put some loop statement around it all. I don't consider it entirely orthogonal to have that functionality directly in an error handling construct. Besides, a much better keyword for it would be "retry".
"Avoid rethrow" means to continue after the statement. The default is to throw the error again after executing the onerror clause (and the finally clause, if there is any).
/ Martin Stjernholm, Roxen IS
Previous text:
2003-10-02 00:00: Subject: Re: throw or return
I think I would like continue to redo the try. I'm not totally clear what "avoid rethrow" would mean...
I really like try <statement> [ onerror [(variable decl)] <statement> ] [ finally <statement> ]
but note that I'd like all three to be statement, not { ... }, so you can write
try foo() onerror werror("got error!!1!¡\n");
if you like.
/ Mirar