鴻蒙OS FormException

2022-04-09 16:21 更新

FormException

java.lang.Object

|---java.lang.Throwable

|---|---java.lang.Exception

|---|---|---ohos.aafwk.ability.FormException

& public class FormException
& extends Exception

描述在 Form 操作過程中發(fā)生錯(cuò)誤時(shí)引發(fā)的異常。

嵌套類摘要

修飾符和類型 描述
static class FormException.FormError FormError 表示表單錯(cuò)誤代碼和錯(cuò)誤信息。

方法總結(jié)

修飾符和類型 方法 描述
FormException.FormError getErrorCode() 獲取此 FormException 中發(fā)生的 FormError。
String getMessage() 返回此 throwable 的詳細(xì)消息字符串。
從 java.lang.Object 類繼承的方法
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait
從 java.lang.Throwable 類繼承的方法
addSuppressedfillInStackTracegetCausegetLocalizedMessagegetStackTracegetSuppressedinitCauseprintStackTraceprintStackTraceprintStackTracesetStackTracetoString

方法詳情

getMessage

public String getMessage()

返回此 throwable 的詳細(xì)消息字符串。

覆蓋:

Throwable 類中的 getMessage

返回:

此 FormError 實(shí)例的詳細(xì)消息字符串(可能為 null)。

getErrorCode

public FormException.FormError getErrorCode()

獲取此 FormException 中發(fā)生的 FormError。

返回:

返回此 FormException 中發(fā)生的 FormError。

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號