java.lang.Object
java.lang.Throwable
java.lang.Error
java.lang.VirtualMachineError
- 所有已实现的接口:
Serializable
- 已知子类:
InternalError,OutOfMemoryError,StackOverflowError,UnknownError
抛出表示 Java 虚拟机已损坏或耗尽了继续运行所需的资源。
- 自从:
- 1.0
- 参见:
-
构造方法总结
构造方法构造方法描述构造一个没有详细消息的VirtualMachineError。VirtualMachineError(String message) 用指定的详细信息构造一个VirtualMachineErrorVirtualMachineError(String message, Throwable cause) 使用指定的详细消息和原因构造一个VirtualMachineError。VirtualMachineError(Throwable cause) 构造具有指定原因的VirtualMachineError和(cause==null ? null : cause.toString())的详细消息(通常包含cause的类和详细消息)。 -
方法总结
在类 java.lang.Throwable 中声明的方法
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
构造方法详细信息
-
VirtualMachineError
public VirtualMachineError()构造一个没有详细消息的VirtualMachineError。 -
VirtualMachineError
用指定的详细信息构造一个VirtualMachineError- 参数:
message- 详细信息。
-
VirtualMachineError
使用指定的详细消息和原因构造一个VirtualMachineError。请注意,与
cause关联的详细消息是not自动并入此错误的详细消息中。- 参数:
message- 详细消息(保存以供以后通过Throwable.getMessage()方法检索)。cause- 原因(保存以供以后通过Throwable.getCause()方法检索)。 (允许使用null值,表示原因不存在或未知。)- 自从:
- 1.8
-
VirtualMachineError
构造具有指定原因的VirtualMachineError和(cause==null ? null : cause.toString())的详细消息(通常包含cause的类和详细消息)。- 参数:
cause- 原因(保存以供以后通过Throwable.getCause()方法检索)。 (允许使用null值,表示原因不存在或未知。)- 自从:
- 1.8
-