后浪云鸿蒙OS教程:鸿蒙OS FormException

树叶云

FormException

java.lang.Object

|—java.lang.Throwable

|—|—java.lang.Exception

|—|—|—ohos.aafwk.ability.FormException

& public class FormException
& extends Exception

描述在 Form 操作过程中发生错误时引发的异常。

嵌套类摘要

修饰符和类型描述
static classFormException.FormErrorFormError 表示表单错误代码和错误信息。

方法总结

修饰符和类型方法描述
FormException.FormErrorgetErrorCode()获取此 FormException 中发生的 FormError。
StringgetMessage()返回此 throwable 的详细消息字符串。
从 java.lang.Object 类继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
从 java.lang.Throwable 类继承的方法
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

方法详情

getMessage

public String getMessage()

返回此 throwable 的详细消息字符串。

覆盖:

Throwable 类中的 getMessage

返回:

此 FormError 实例的详细消息字符串(可能为 null)。

getErrorCode

public FormException.FormError getErrorCode()

获取此 FormException 中发生的 FormError。

返回:

返回此 FormException 中发生的 FormError。

文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/199238.html<

(0)
运维的头像运维
上一篇2025-04-04 18:06
下一篇 2025-04-04 18:07

相关推荐

发表回复

您的邮箱地址不会被公开。必填项已用 * 标注