Код: Выделить всё
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();
}
}
Код: Выделить всё
launcher.java:14: error: cannot find symbol
static void getError() throws ^myException{
symbol: class myException
location: class launcher
Подробнее здесь: https://stackoverflow.com/questions/400 ... ind-symbol