corda/test/Exceptions.java

24 lines
419 B
Java
Raw Normal View History

public class Exceptions {
2007-06-29 20:39:01 -06:00
private static void evenMoreDangerous() {
throw new RuntimeException("chaos! panic! overwhelming anxiety!");
}
private static void moreDangerous() {
2007-07-01 19:42:35 -06:00
evenMoreDangerous();
2007-06-29 20:39:01 -06:00
}
private static void dangerous() {
moreDangerous();
}
public static void main(String[] args) {
2007-07-10 22:19:26 -06:00
try {
dangerous();
} catch (Exception e) {
e.printStackTrace();
}
2007-06-29 20:39:01 -06:00
}
}