I have a quick question about throwing/catching exceptions. The question arrives with the following.
if I have code that does the followingCode:public class MyException extends Exception
and other code that catches the exceptionCode:public void someMethod() throws Exception{
throw new MyException("Zomg, bad things");
}
Will the exception be caught in the "handle" or the "handle other things"? Or do I have to explicitly throw MyException as part of someMethod?Code:public void doStuffs(){
try{
//dothings
} catch(MyException e){
//handle
} catch(Exception e){
//handle other things here
}
ex.
Code:public void someMethod() throws MyException, Exception{
throw new MyException("Zomg, bad things");
}

