模块 java.base
 java.lang

类 VirtualMachineError

所有已实现的接口:
Serializable
已知子类:
InternalError , OutOfMemoryError , StackOverflowError , UnknownError

public abstract class VirtualMachineError extends Error
抛出表示 Java 虚拟机已损坏或耗尽了继续运行所需的资源。
自从:
1.0
参见:
  • 构造方法详细信息

    • VirtualMachineError

      public VirtualMachineError()
      构造一个没有详细消息的VirtualMachineError
    • VirtualMachineError

      public VirtualMachineError(String  message)
      用指定的详细信息构造一个 VirtualMachineError
      参数:
      message - 详细信息。
    • VirtualMachineError

      public VirtualMachineError(String  message, Throwable  cause)
      使用指定的详细消息和原因构造一个 VirtualMachineError

      请注意,与 cause 关联的详细消息是not自动并入此错误的详细消息中。

      参数:
      message - 详细消息(保存以供以后通过 Throwable.getMessage() 方法检索)。
      cause - 原因(保存以供以后通过 Throwable.getCause() 方法检索)。 (允许使用 null 值,表示原因不存在或未知。)
      自从:
      1.8
    • VirtualMachineError

      public VirtualMachineError(Throwable  cause)
      构造具有指定原因的 VirtualMachineError(cause==null ? null : cause.toString()) 的详细消息(通常包含 cause 的类和详细消息)。
      参数:
      cause - 原因(保存以供以后通过 Throwable.getCause() 方法检索)。 (允许使用 null 值,表示原因不存在或未知。)
      自从:
      1.8