title: java throw exception cannot find symbol
body: <p>im trying to throw exception from method,but when i compile the below code</p>
  
  <pre><code>class launcher{
  public static void main(String[] args){
      try{
          getError();
          System.out.println("Line: try block");
      }catch(myException e){
          System.out.println("Line: catch block");
      }finally{
          System.out.println("Line: finally block");
      }
      System.out.println("Line: EOF main");
  }
  static void getError() throws myException{
          throw new myException();
      }
  }
  </code></pre>
  
  <p>compile error</p>
  
  <blockquote>
    <p>launcher.java:14: error: cannot find symbol
        static void getError() throws ^myException{</p>
    
    <p>symbol:   class myException</p>
    
    <p>location: class launcher</p>
  </blockquote>
  
  <p>it says something, it can't understand what is <code>myException</code></p>