public abstract class VirtualMachineError
extends Error
| java.lang.Object | |||
| java.lang.Throwable | |||
| java.lang.Error | |||
| java.lang.VirtualMachineError | |||
| |
| |
抛出以表明Java虚拟机已损坏或已耗尽其所需的资源以继续运行。
Public constructors |
|
|---|---|
VirtualMachineError() 构造一个没有详细信息的 |
|
VirtualMachineError(String message) 用指定的详细信息构造一个 |
|
VirtualMachineError(String message, Throwable cause) 用指定的详细信息和原因构造一个 |
|
VirtualMachineError(Throwable cause) 构造一个一个 |
|
继承方法(Inherited methods) |
|
|---|---|
java.lang.Throwable
|
|
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.) |