corda/test/Exceptions.java

24 lines
419 B
Java
Raw Normal View History

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