新聞中心
VirtualMachineError

java.lang.Object
|---java.lang.Throwable
|---|---java.lang.Error
|---|---|---java.lang.VirtualMachineError
public abstract class VirtualMachineError
extends Error
拋出以指示 Java 虛擬機(jī)已損壞或已用完繼續(xù)運(yùn)行所需的資源。
構(gòu)造函數(shù)摘要
| 構(gòu)造函數(shù) | 描述 |
|---|---|
| VirtualMachineError() | 構(gòu)造一個沒有詳細(xì)消息的 VirtualMachineError。 |
| VirtualMachineError(String message) | 構(gòu)造一個帶有指定詳細(xì)消息的 VirtualMachineError。 |
| VirtualMachineError(String message, Throwable cause) | 使用指定的詳細(xì)消息和原因構(gòu)造一個 VirtualMachineError。 |
| VirtualMachineError(Throwable cause) | 構(gòu)造一個具有指定原因的 VirtualMachineError 和 (cause==null ? null : cause.toString()) 的詳細(xì)消息(通常包含原因的類和詳細(xì)消息)。 |
方法總結(jié)
| 從類 java.lang.Object 繼承的方法 |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 從類 java.lang.Throwable 繼承的方法 |
|---|
| addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
構(gòu)造函數(shù)詳細(xì)信息
VirtualMachineError
public VirtualMachineError()
構(gòu)造一個沒有詳細(xì)消息的 VirtualMachineError。
VirtualMachineError
public VirtualMachineError(String message)
構(gòu)造一個帶有指定詳細(xì)消息的 VirtualMachineError。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| message | 詳細(xì)信息。 |
VirtualMachineError
public VirtualMachineError(String message, Throwable cause)
使用指定的詳細(xì)消息和原因構(gòu)造一個 VirtualMachineError。
請注意,與原因相關(guān)的詳細(xì)消息不會自動合并到此錯誤的詳細(xì)消息中。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| message | 詳細(xì)消息(保存以供 Throwable.getMessage() 方法稍后檢索)。 |
| cause | 原因(由 Throwable.getCause() 方法保存以供以后檢索)。 (允許使用空值,表示原因不存在或未知。) |
VirtualMachineError
public VirtualMachineError(Throwable cause)
構(gòu)造一個具有指定原因的 VirtualMachineError 和 (cause==null ? null : cause.toString()) 的詳細(xì)消息(通常包含原因的類和詳細(xì)消息)。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| cause | 原因(由 Throwable.getCause() 方法保存以供以后檢索)。 (允許使用空值,表示原因不存在或未知。) |
分享標(biāo)題:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSVirtualMachineError
網(wǎng)站URL:http://www.dlmjj.cn/article/djgdsge.html


咨詢
建站咨詢
