public abstract class VirtualMachineError
extends Error
java.lang.Object | |||
↳ | java.lang.Throwable | ||
↳ | java.lang.Error | ||
↳ | java.lang.VirtualMachineError |
Known Direct Subclasses |
Known Indirect Subclasses |
抛出以表明Java虚拟机已损坏或已耗尽其所需的资源以继续运行。
Public constructors |
|
---|---|
VirtualMachineError() 构造一个没有详细信息的 |
|
VirtualMachineError(String message) 用指定的详细信息构造一个 |
|
VirtualMachineError(String message, Throwable cause) 用指定的详细信息和原因构造一个 |
|
VirtualMachineError(Throwable cause) 构造一个一个 |
Inherited methods |
|
---|---|
From class java.lang.Throwable
|
|
From class java.lang.Object
|
VirtualMachineError (String message)
用指定的详细信息构造一个 VirtualMachineError
。
Parameters | |
---|---|
message |
String : the detail message. |
VirtualMachineError (String message, Throwable cause)
用指定的详细信息和原因构造一个 VirtualMachineError
。
请注意,与 cause
关联的详细消息 不会自动包含在此错误的详细消息中。
Parameters | |
---|---|
message |
String : the detail message (which is saved for later retrieval by the getMessage() method). |
cause |
Throwable : the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.) |
VirtualMachineError (Throwable cause)
构造一个一个 VirtualMachineError
与指定的原因和详细消息 (cause==null ? null : cause.toString())
(它通常包含的类和详细消息 cause
)。
Parameters | |
---|---|
cause |
Throwable : the cause (which is saved for later retrieval by the getCause() method). (A null value is permitted, and indicates that the cause is nonexistent or unknown.) |