Most visited

Recently visited

Added in API level 1

VirtualMachineError

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虚拟机已损坏或已耗尽其所需的资源以继续运行。

Summary

Public constructors

VirtualMachineError()

构造一个没有详细信息的 VirtualMachineError

VirtualMachineError(String message)

用指定的详细信息构造一个 VirtualMachineError

VirtualMachineError(String message, Throwable cause)

用指定的详细信息和原因构造一个 VirtualMachineError

VirtualMachineError(Throwable cause)

构造一个一个 VirtualMachineError与指定的原因和详细消息 (cause==null ? null : cause.toString()) (它通常包含的类和详细消息 cause )。

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Public constructors

VirtualMachineError

Added in API level 1
VirtualMachineError ()

构造一个没有详细信息的 VirtualMachineError

VirtualMachineError

Added in API level 1
VirtualMachineError (String message)

用指定的详细信息构造一个 VirtualMachineError

Parameters
message String: the detail message.

VirtualMachineError

Added in API level 24
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

Added in API level 24
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.)

Hooray!