mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +00:00
24 lines
419 B
Java
24 lines
419 B
Java
public class Exceptions {
|
|
|
|
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();
|
|
}
|
|
}
|
|
|
|
}
|