title: Retry after Exception in Groovy
body: <p>In Ruby, I can write:</p>
  
  <pre><code>begin
    do_something # exception raised
  rescue
     # handles error
     retry  # restart from beginning
  end
  </code></pre>
  
  <p>Is there something similar in Groovy/Java? </p>
  
  <p>I found <a href="http://blog.oio.de/2011/03/23/a-groovy-way-to-retry-method-calls-in-case-of-exceptions/">this</a> but maybe there is something better ? </p>