title: Java Exceptions: exception myException is never thrown in body of corresponding try statement
body: <p>I understand the idea of this error. But I guess I don't understand how this works down the call stack.</p>
  
  <p>File Main.java:</p>
  
  <pre><code>public static void main(String[] args) {
      try {
           Function1();
        } catch (myException e) {
        System.out.println(e.getMessage());
      }
  }
  public static void Function1() {
      Function2();
  }
  </code></pre>
  
  <p>Function2 exists in another file:</p>
  
  <p>File2.java</p>
  
  <pre><code>public void Function2() throws myException {
       ....
  }
  </code></pre>
  
  <p>So through several calls (down the call stack) I have Function2 which specifies the requirement "throws myException". How come the main function (where the error is being directed at) doesn't recognize that I throw myException down the line?</p>
  
  <p>Any guidance in where the 'hole' in my "exception knowledge" lies would be greatly appreciated.</p>
  
  <p>aitee,</p>