新聞中心
這里有您想知道的互聯網營銷解決方案
創(chuàng)新互聯鴻蒙OS教程:鴻蒙OSVirtualMachineError
VirtualMachineError

java.lang.Object
|---java.lang.Throwable
|---|---java.lang.Error
|---|---|---java.lang.VirtualMachineError
public abstract class VirtualMachineError
extends Error
拋出以指示 Java 虛擬機已損壞或已用完繼續(xù)運行所需的資源。
構造函數摘要
| 構造函數 | 描述 |
|---|---|
| VirtualMachineError() | 構造一個沒有詳細消息的 VirtualMachineError。 |
| VirtualMachineError(String message) | 構造一個帶有指定詳細消息的 VirtualMachineError。 |
| VirtualMachineError(String message, Throwable cause) | 使用指定的詳細消息和原因構造一個 VirtualMachineError。 |
| VirtualMachineError(Throwable cause) | 構造一個具有指定原因的 VirtualMachineError 和 (cause==null ? null : cause.toString()) 的詳細消息(通常包含原因的類和詳細消息)。 |
方法總結
| 從類 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 |
構造函數詳細信息
VirtualMachineError
public VirtualMachineError()
構造一個沒有詳細消息的 VirtualMachineError。
VirtualMachineError
public VirtualMachineError(String message)
構造一個帶有指定詳細消息的 VirtualMachineError。
參數:
| 參數名稱 | 參數描述 |
|---|---|
| message | 詳細信息。 |
VirtualMachineError
public VirtualMachineError(String message, Throwable cause)
使用指定的詳細消息和原因構造一個 VirtualMachineError。
請注意,與原因相關的詳細消息不會自動合并到此錯誤的詳細消息中。
參數:
| 參數名稱 | 參數描述 |
|---|---|
| message | 詳細消息(保存以供 Throwable.getMessage() 方法稍后檢索)。 |
| cause | 原因(由 Throwable.getCause() 方法保存以供以后檢索)。 (允許使用空值,表示原因不存在或未知。) |
VirtualMachineError
public VirtualMachineError(Throwable cause)
構造一個具有指定原因的 VirtualMachineError 和 (cause==null ? null : cause.toString()) 的詳細消息(通常包含原因的類和詳細消息)。
參數:
| 參數名稱 | 參數描述 |
|---|---|
| cause | 原因(由 Throwable.getCause() 方法保存以供以后檢索)。 (允許使用空值,表示原因不存在或未知。) |
本文題目:創(chuàng)新互聯鴻蒙OS教程:鴻蒙OSVirtualMachineError
本文來源:http://m.fisionsoft.com.cn/article/djgdsge.html


咨詢
建站咨詢
