晴川云鸿蒙OS教程:鸿蒙OS FormException

FormException

java.lang.Object

|—java.lang.Throwable

|—|—java.lang.Exception

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

& public class FormException
& extends Exception

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

嵌套类摘要

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

方法总结

修饰符和类型 方法 描述
FormException.FormError getErrorCode() 获取此 FormException 中发生的 FormError。
String getMessage() 返回此 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。

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
相关推荐
  • 暂无相关文章
评论 抢沙发

请登录后发表评论

    暂无评论内容