mirror of
https://github.com/corda/corda.git
synced 2025-01-09 06:23:04 +00:00
abe8bc6fda
Method.invoke should initialize its class before invoking the method, throwing an ExceptionInInitializerError if it fails, without wrapping said error in an InvocationTargetException. Also, we must initialize ExceptionInInitializerError.exception when throwing instances from the VM, since OpenJDK's ExceptionInInitializerError.getCause uses the exception field, not the cause field.
25 lines
631 B
Java
25 lines
631 B
Java
/* Copyright (c) 2008-2013, Avian Contributors
|
|
|
|
Permission to use, copy, modify, and/or distribute this software
|
|
for any purpose with or without fee is hereby granted, provided
|
|
that the above copyright notice and this permission notice appear
|
|
in all copies.
|
|
|
|
There is NO WARRANTY for this software. See license.txt for
|
|
details. */
|
|
|
|
package java.lang;
|
|
|
|
public class ExceptionInInitializerError extends Error {
|
|
private final Throwable exception;
|
|
|
|
public ExceptionInInitializerError(String message) {
|
|
super(message);
|
|
exception = null;
|
|
}
|
|
|
|
public ExceptionInInitializerError() {
|
|
this(null);
|
|
}
|
|
}
|