类:ErrorEvent

使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。

构造函数

ErrorEvent

new ErrorEvent(detailedErrorCode, error, reason)

参数

详细错误代码

选填

cast.framework.events.DetailErrorCode

值不能为 null。

错误

选填

对象

值不能为 null。

reason

选填

cast.framework.messages.ErrorReason

值不能为 null。

属性

详细错误代码

常量

(非 null cast.framework.events.DetailErrorCode 或未定义)

表示错误原因的错误代码。

错误

常量

(非 null 错误、非 null 对象或未定义)

错误对象。这可能是 Error 对象(例如,如果事件处理脚本中抛出 Error)或包含错误信息的对象(例如,如果接收方收到无效命令)。

reason

(非 null cast.framework.messages.ErrorReason 或未定义)

可选的错误原因。