title: How to invoke method "x" on failure of method "y"?
body: <p>I want to run method x if method y fails. For example</p>
  
  <pre><code>public void createzoo (){
  
  create.chimp();
  if 
  activateByMail.chimp() fails 
  run 
  activateByAdmin.chimp()
  
  delete.chimp();
  
  }
  </code></pre>
  
  <p>It would be good if I could use boolean to accomplish this.
  I'm writing scripts in java on ubuntu</p>