summaryrefslogtreecommitdiff
path: root/test/008-exceptions/src/Main.java
diff options
context:
space:
mode:
Diffstat (limited to 'test/008-exceptions/src/Main.java')
-rw-r--r--test/008-exceptions/src/Main.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/008-exceptions/src/Main.java b/test/008-exceptions/src/Main.java
index c0502047d0..9e3477a47b 100644
--- a/test/008-exceptions/src/Main.java
+++ b/test/008-exceptions/src/Main.java
@@ -98,8 +98,9 @@ public class Main {
try {
BadInit.dummy = 1;
throw new IllegalStateException("Should not reach here.");
- } catch (BadError e) {
+ } catch (NoClassDefFoundError e) {
System.out.println(e);
+ System.out.println(e.getCause());
}
} catch (Exception error) {
error.printStackTrace();
@@ -120,8 +121,9 @@ public class Main {
try {
BadInitNoStringInit.dummy = 1;
throw new IllegalStateException("Should not reach here.");
- } catch (BadErrorNoStringInit e) {
+ } catch (NoClassDefFoundError e) {
System.out.println(e);
+ System.out.println(e.getCause());
}
} catch (Exception error) {
error.printStackTrace();