title: Java How to "Override" a catch block
body: <p>I have a method. This method has a catch block.</p>
  
  <pre><code>// pseudo code
  private void function() {
      try {
          // something
      } catch(exception e) {
          // error handling
      }
  }
  </code></pre>
  
  <p>This method is called in another class
  In one scenario the class is implemented with its own catch block</p>
  
  <pre><code>// pseudo code
  private void anotherFunction() {
      try {
          function(); 
      } catch {
          //another catch block
      }
  </code></pre>
  
  <p>Now I just want to execute the code in the catch block where the function is called and don't call the catch block implemented in the class. Is there a way to do this or should I think about another approach?</p>