corda/classpath/TestExceptions.java
2007-07-10 22:19:26 -06:00

24 lines
423 B
Java

public class TestExceptions {
private static void evenMoreDangerous() {
throw new RuntimeException("chaos! panic! overwhelming anxiety!");
}
private static void moreDangerous() {
evenMoreDangerous();
}
private static void dangerous() {
moreDangerous();
}
public static void main(String[] args) {
try {
dangerous();
} catch (Exception e) {
e.printStackTrace();
}
}
}