Automatic bookkeeping for exception retries

Posted by pilcrow on Stack Overflow See other posts from Stack Overflow or by pilcrow
Published on 2010-06-18T16:28:21Z Indexed on 2010/06/18 16:33 UTC
Read the original article Hit count: 321

Do any languages that support retry constructs in exception handling track and expose the number of times their catch/rescue (and/or try/begin) blocks have been executed in a particular run?

I find myself counting (and limiting) the number of times a code block is re-executed after an exception often enough that this would be a handy language built-in.

© Stack Overflow or respective owner

Related posts about exception

Related posts about exception-handling