mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
20 lines
350 B
Java
20 lines
350 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) {
|
||
|
dangerous();
|
||
|
}
|
||
|
|
||
|
}
|