Created
May 7, 2017 06:46
-
-
Save BalicantaYao/f6c5787d23ece2e201fb91fbf8d0e869 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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