Skip to content

Instantly share code, notes, and snippets.

@BalicantaYao
Created May 7, 2017 06:46
Show Gist options
  • Save BalicantaYao/f6c5787d23ece2e201fb91fbf8d0e869 to your computer and use it in GitHub Desktop.
Save BalicantaYao/f6c5787d23ece2e201fb91fbf8d0e869 to your computer and use it in GitHub Desktop.
class Exception1 extends Exception{}
class Exception2 extends Exception1{}
class Exception3 extends Exception2{}
class Lazy{
public void foot(int i) throws Exception1 {
if(i == 1){
throw new Exception1();
} else if(i==2){
throw new Exception2();
} else if(i==3){
throw new Exception3()
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment