public void method1(){
try{
method2(); //호출
}catch(Exception e){
//예외처리
System.out.println("예외")
}
}
public void method2() throws Exception , ,,{
//강제로 예외 발생
throw new Exepciont();
}
출처 : https://www.lainyzine.com/ko/article/git-stash-usage-saving-changes-without-commit/