优惠码 第86页

鸿蒙OS OperationExecuteException

ProfileMissingConfigException java.lang.Object |—java.lang.Throwable |—|—java.lang.Exception |—|—|—java.lang.RuntimeException |—|—|—|—ohos.aafwk.ability.ProfileMissingConfigException & public class ProfileMissingConfigException & extends RuntimeException 描述配置文件缺少必要配置时引发的异常。 构造函数摘要 构造函数 描述 ProfileMissingConfigException(String message) 用于创建 ProfileMissingConfigException 实例的构造函数。 方法总结 从 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 构造函数详细信息 ProfileMissingConfigException public ProfileMissingConfigException(String message) 用于创建 ProfileMissingConfigException 实例的构造函数。 参数: 参数名称 参数描述 message 表示异常消息

鸿蒙OS OperationExecuteException

OperationExecuteException java.lang.Object |—java.lang.Throwable |—|—java.lang.Exception |—|—|—ohos.aafwk.ability.OperationExecuteException & public class OperationExecuteException & extends Exception 描述在使用数据模板的能力中发生操作执行异常时引发的异常。 这个类是Exception的子类。 构造函数摘要 构造函数 描述 OperationExecuteException() 用于创建 OperationExecuteException 实例的无参数构造函数。 OperationExecuteException(String msg) 用于创建 OperationExecuteException 实例的参数化构造函数。 方法总结 从 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 构造函数详细信息 OperationExecuteException public OperationExecuteException() 用于创建 OperationExecuteException 实例的无参数构造函数。 OperationExecuteException public OperationExecuteException(String msg) 用于创建 OperationExecuteException 实例的参数化构造函数。 参数: 参数名称 参数描述 msg 表示异常的详细信息。

鸿蒙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。

鸿蒙OS DataAbilityRemoteException

DataAbilityRemoteException java.lang.Object |—java.lang.Throwable |—|—java.lang.Exception |—|—|—ohos.aafwk.ability.DataAbilityDeadException |—|—|—|—ohos.aafwk.ability.DataAbilityRemoteException & public class DataAbilityRemoteException & extends DataAbilityDeadException 描述远程进程退出异常。 当被调用的远程进程退出时会抛出此异常。 构造函数摘要 构造函数 描述 DataAbilityRemoteException(String msg) 用于创建 DataAbilityRemoteException 实例的参数化构造函数。 方法总结 从 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 构造函数详细信息 DataAbilityRemoteException public DataAbilityRemoteException(String msg) 用于创建 DataAbilityRemoteException 实例的参数化构造函数。 参数: 参数名称 参数描述 msg 表示异常信息

鸿蒙OS DataAbilityDeadException

DataAbilityDeadException java.lang.Object |—java.lang.Throwable |—|—java.lang.Exception |—|—|—ohos.aafwk.ability.DataAbilityDeadException & public class DataAbilityDeadException & extends Exception 描述进程退出异常。 当被调用的 DataAbility 进程退出时会抛出此异常。 构造函数摘要 构造函数 描述 DataAbilityDeadException(String msg) 用于创建 DataAbilityDeadException 实例的参数化构造函数。 方法总结 从 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 构造函数详细信息 DataAbilityDeadException public DataAbilityDeadException(String msg) 用于创建 DataAbilityDeadException 实例的参数化构造函数。 参数: 参数名称 参数描述 msg 表示异常信息

鸿蒙OS AbilitySliceRuntimeException

AbilitySliceRuntimeException java.lang.Object |—java.lang.Throwable |—|—java.lang.Exception |—|—|—java.lang.RuntimeException |—|—|—|—ohos.aafwk.ability.AbilitySliceRuntimeException & public class AbilitySliceRuntimeException & extends RuntimeException 描述在 AbilitySlice 中发生运行时异常时引发的异常。 该类是 RuntimeException 的子类。 构造函数摘要 构造函数 描述 AbilitySliceRuntimeException(String msg) 用于创建 AbilitySliceRuntimeException 实例的参数化构造函数。 方法总结 从 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 构造函数详细信息 AbilitySliceRuntimeException public AbilitySliceRuntimeException(String msg) 用于创建 AbilitySliceRuntimeException 实例的参数化构造函数。 参数: 参数名称 参数描述 msg 表示异常的详细信息。

鸿蒙OS Lifecycle.Event

Lifecycle.Event java.lang.Object |—java.lang.Enum<Lifecycle.Event& |—|—ohos.aafwk.ability.Lifecycle.Event & public static enum Lifecycle.Event & extends Enum<Lifecycle.Event& 表示生命周期事件。 当生命周期状态发生变化时,系统会调度一个事件。 系统安排生命周期更改并将事件分派到生命周期。 Lifecycle 然后将 Event 分派到已注册的 ILifecycleObserver 以响应生命周期更改。 例如,如果注册的 LifecycleObserver 收到 ON_ACTIVE 事件,它将调用 LifecycleObserver#onActive() 将能力或能力切片更改为 ACTIVE 状态。 枚举常量摘要 枚举常量 描述 ON_ACTIVE 指示ability或ability切片进入 ACTIVE 状态的事件。 ON_BACKGROUND 指示ability或ability切片进入背景状态的事件。 ON_FOREGROUND 指示ability或ability切片的生命周期状态从背景更改为不活动的事件。 ON_INACTIVE 指示ability或ability切片进入 INACTIVE 状态的事件。 ON_START 指示生命周期开始的事件。 ON_STOP 表示生命周期即将被销毁的事件。 UNDEFINED 未定义的生命周期事件,表明生命周期可能尚未开始或已被销毁。 方法总结 修饰符和类型 方法 描述 static Lifecycle.Event valueOf(String name) 返回具有指定名称的此类型的枚举常量。 static Lifecycle.Event[] values() 按照声明的顺序返回包含此枚举类型常量的数组。 从 java.lang.Enum 类继承的方法 clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf 从 java.lang.Object 类继承的方法 getClass, notify, notifyAll, wait, wait, wait 枚举常量详细信息 UNDEFINED public static final Lifecycle.Event UNDEFINED 未定义的生命周期事件,表明生命周期可能尚未开始或已被销毁。 ON_START public static final Lifecycle.Event ON_START 指示生命周期开始的事件。 ON_INACTIVE public static final Lifecycle.Event ON_INACTIVE 指示ability或ability切片进入 INACTIVE 状态的事件。 ON_ACTIVE public static final Lifecycle.Event ON_ACTIVE 指示ability或ability切片进入 ACTIVE 状态的事件。 ON_BACKGROUND public static final Lifecycle.Event ON_BACKGROUND 指示ability或ability切片进入背景状态的事件。 ON_FOREGROUND public static final Lifecycle.Event ON_FOREGROUND 指示ability或ability切片的生命周期状态从背景更改为不活动的事件。 ON_STOP public static final Lifecycle.Event ON_STOP 表示生命周期即将被销毁的事件。 方法详情...

鸿蒙OS FormState

FormState java.lang.Object |—java.lang.Enum<FormState& |—|—ohos.aafwk.ability.FormState & public enum FormState & extends Enum<FormState& 枚举表单的状态。 枚举常量摘要 枚举常量 描述 DEFAULT 表示表单处于默认状态。 READY 表示表单已准备就绪。 UNKNOWN 表示由于内部错误,表单状态未知。 方法总结 修饰符和类型 方法 描述 int getValue() 获取 FormState 枚举常量表示的表单状态的 int 值。 static FormState intToEnum(int state) 将给定的 int 值转换为其对应的表示表单状态的枚举常量。 static FormState valueOf(String name) 返回具有指定名称的此类型的枚举常量。 static FormState[] values() 按照声明的顺序返回包含此枚举类型常量的数组。 从 java.lang.Enum 类继承的方法 clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf 从 java.lang.Object 类继承的方法 getClass, notify, notifyAll, wait, wait, wait 枚举常量详细信息 UNKNOWN public static final FormState UNKNOWN 表示由于内部错误,表单状态未知。 DEFAULT public static final FormState DEFAULT 表示表单处于默认状态。 READY public static final FormState READY 表示表单已准备就绪。 方法详情 values public static FormState[] values() 按照声明的顺序返回包含此枚举类型常量的数组。 此方法可用于迭代常量,如下所示: for (FormState c : FormState.values()) System.out.println(c); 返回: 包含此枚举类型的常量的数组,按声明的顺序排列 valueOf public static FormState valueOf(String name) 返回具有指定名称的此类型的枚举常量。 该字符串必须与用于在此类型中声明枚举常量的标识符完全匹配。 (不允许使用无关的空白字符。) 参数: 参数名称 参数描述 name 要返回的枚举常量的名称。 返回: 具有指定名称的枚举常量 Throws: Throw名称 Throw描述 IllegalArgumentException 如果此枚举类型没有具有指定名称的常量 NullPointerException 如果参数为空 getValue public int getValue() 获取 FormState 枚举常量表示的表单状态的 int 值。 返回: 返回由 FormState 枚举常量表示的表单状态的 int...

鸿蒙OS FormException.FormError

FormException.FormError java.lang.Object |—java.lang.Enum<FormException.FormError& |—|—ohos.aafwk.ability.FormException.FormError & public static enum FormException.FormError & extends Enum<FormException.FormError& FormError 表示表单错误代码和错误信息。 枚举常量摘要 枚举常量 描述 ABILITY_NOT_EXIST ability在系统中找不到。 BIND_PROVIDER_FAILED 无法将表单管理器服务绑定到提供程序服务。 BMS_RPC_ERROR Bundle Manager Service RPC 对象未启动,获取失败。 DIMENSION_NOT_EXIST dimension在表单中不存在。 EXCEED_MAX_FORMS_PER_CLIENT 添加表单的总数超过了每个客户的最大值。 EXCEED_MAX_INSTANCES_PER_FORM 使用相同的表单配置生成的表单实例的数量超过了系统允许的最大值。 EXCEED_MAX_SYSTEM_FORMS 添加的表格总数超过了系统允许的最大值。 EXCEED_MAX_SYSTEM_TEMP_FORMS 添加的临时表格的总数超过了系统中的最大值。 FA_NOT_INSTALLED ability未安装 FMS_RPC_ERROR 获取Form Manager Service的RPC对象失败,因为服务没有启动。 FORM_CFG_NOT_MATCH_ID 使用已有的表单ID获取的表单配置与第一次获取的表单配置不同。 FORM_DUPLICATE_ADDED 无法获取客户端请求的表单,因为正在使用具有相同表单 ID 的另一个表单。 FORM_ID_NOT_EXIST 表单管理服务中不存在要操作的表单ID。 FORM_IN_RECOVER 正在恢复表单。 FORM_INFO_NOT_FOUND 获取请求参数指定的表单配置信息失败。 FORM_NOT_SELF_OWNED 请求的表单是由其他应用程序添加的,当前应用程序无法操作。 GET_BUNDLE_FAILED 根据请求参数获取表单所属的bundle失败。 INIT_LAYOUT_FAILED 根据请求参数初始化表单布局失败。 INPUT_PARAM_INVALID 表单操作期间输入参数无效。 INTERNAL_ERROR 在表单处理过程中会发生一个常见的内部错误。 MAX_REFRESH 表示周期性刷新次数已达到限制。 MAX_REQUEST 请求次数过多 MODULE_NOT_EXIST 在系统中找不到该模块 PERMISSION_DENY 该应用程序无权使用表单。 PROVIDER_DELETE_FAIL 表单管理器服务未能指示表单提供者删除表单。 SEND_BMS_MSG_ERROR 无法将请求发送到 Bundle Manager Service。 SEND_FMS_MSG_ERROR 未能将请求发送到表单管理器服务。 方法总结 修饰符和类型 方法 描述 static FormException.FormError valueOf(String name) 返回具有指定名称的此类型的枚举常量。 static FormException.FormError[] values() 按照声明的顺序返回包含此枚举类型常量的数组。 从 java.lang.Enum 类继承的方法 clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf 从 java.lang.Object 类继承的方法 getClass, notify, notifyAll, wait, wait, wait 枚举常量详细信息 INPUT_PARAM_INVALID public static final FormException.FormError INPUT_PARAM_INVALID 表单操作期间输入参数无效。 确保所有输入参数都有效。 FMS_RPC_ERROR public static final FormException.FormError FMS_RPC_ERROR 获取Form Manager Service的RPC对象失败,因为服务没有启动。 请在服务启动后重试。 BMS_RPC_ERROR public static final FormException.FormError BMS_RPC_ERROR Bundle Manager Service RPC 对象未启动,获取失败。 请在服务启动后重试。...

鸿蒙OS ContinuationState

ContinuationState java.lang.Object |—java.lang.Enum<ContinuationState& |—|—ohos.aafwk.ability.ContinuationState & public enum ContinuationState & extends Enum<ContinuationState& 枚举已实现 IAbilityContinuation 并处于允许将功能迁移回的可逆迁移过程中的迁移状态。 以下示例描述了迁移过程中的状态更改: 设备 A 上 FooAbility 的初始状态是 LOCAL_RUNNING。 如果以可逆的方式迁移到设备 B,则其在设备 A 上的状态变为 REMOTE_RUNNING,在设备 B 上的状态变为 REPLICA_RUNNING。 如果它以不可逆的方式迁移到设备 B,它在两个设备上的状态都是 LOCAL_RUNNING。 枚举常量摘要 枚举常量 描述 LOCAL_RUNNING 表示该功能正在本地设备上运行。 REMOTE_RUNNING 表示该功能已迁移到另一台设备。 REPLICA_RUNNING 表示该功能已从另一台设备迁移到当前设备。 方法总结 修饰符和类型 方法 描述 static ContinuationState valueOf(String name) 返回具有指定名称的此类型的枚举常量。 static ContinuationState[] values() 按照声明的顺序返回包含此枚举类型常量的数组。 从 java.lang.Enum 类继承的方法 clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf 从 java.lang.Object 类继承的方法 getClass, notify, notifyAll, wait, wait, wait 枚举常量详细信息 LOCAL_RUNNING public static final ContinuationState LOCAL_RUNNING 表示该功能正在本地设备上运行。 REMOTE_RUNNING public static final ContinuationState REMOTE_RUNNING 表示该功能已迁移到另一台设备。 REPLICA_RUNNING public static final ContinuationState REPLICA_RUNNING 表示该功能已从另一台设备迁移到当前设备。 方法详情 values public static ContinuationState[] values() 按照声明的顺序返回包含此枚举类型常量的数组。 此方法可用于迭代常量,如下所示: for (ContinuationState c : ContinuationState.values()) System.out.println(c); 返回: 包含此枚举类型的常量的数组,按声明的顺序排列 valueOf public static ContinuationState valueOf(String name) 返回具有指定名称的此类型的枚举常量。 该字符串必须与用于在此类型中声明枚举常量的标识符完全匹配。 (不允许使用无关的空白字符。) 参数: 参数名称 参数描述 name 要返回的枚举常量的名称。 返回: 具有指定名称的枚举常量 Throws: Throw名称 Throw描述 IllegalArgumentException 如果此枚举类型没有具有指定名称的常量 NullPointerException 如果参数为空