mirror of
https://github.com/corda/corda.git
synced 2024-12-29 09:18:58 +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();
|
|
}
|
|
|
|
}
|