包 | com.adobe.icc.editors.managers |
类 | public class ErrorManager |
继承 | ErrorManager Object |
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
ErrorManager
helps you handle errors occurring on the client.
It is a central place for handling all the validation/service errors and displaying the correct error message in the current user locale.
属性 | 由以下参数定义 | ||
---|---|---|---|
constructor : Object
对类对象或给定对象实例的构造函数的引用。 | Object | ||
errorManagerImpl : IErrorManager [静态] [只写]
Method to override the error manager implementation
| ErrorManager |
方法 | 由以下参数定义 | ||
---|---|---|---|
[静态]
Helper method for handling Document Composer faults. | ErrorManager | ||
[静态]
Helper method for handling server faults. | ErrorManager | ||
[静态]
Helper method for handling client domain validation errors. | ErrorManager | ||
表示对象是否已经定义了指定的属性。 | Object | ||
表示 Object 类的实例是否在指定为参数的对象的原型链中。 | Object | ||
表示指定的属性是否存在、是否可枚举。 | Object | ||
设置循环操作动态属性的可用性。 | Object | ||
showMessage(msgTitle:String, msgText:String, closeHandler:Function = null, messageType:String = null, flags:uint = 0x0004):void [静态]
Helper method for handling Document Composer user messages. | ErrorManager | ||
返回此对象的字符串表示形式,其格式设置遵守区域设置特定的约定。 | Object | ||
返回指定对象的字符串表示形式。 | Object | ||
返回指定对象的原始值。 | Object |
常量 | 由以下参数定义 | ||
---|---|---|---|
Error_Icon : * = Error [静态]
The constant specifying the Error Icon. | ErrorManager | ||
Info_Icon : * = Info [静态]
The constant specifying the Info Icon. | ErrorManager | ||
Ok_Icon : * = Ok [静态]
The constant specifying the OK Icon. | ErrorManager | ||
Warning_Icon : * = Warning [静态]
The constant specifying the Warning Icon. | ErrorManager |
errorManagerImpl | 属性 |
errorManagerImpl:IErrorManager
[只写] 语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Method to override the error manager implementation
实现
public static function set errorManagerImpl(value:IErrorManager):void
handleError | () | 方法 |
public static function handleError(fault:Fault, flags:uint = 0x0004, closeHandler:Function = null):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Helper method for handling Document Composer faults.
This method reads the fault code from the passed fault
object, pulls the relevant error message from the resource bundle, fills
it with details if required and shows it to the user in form of an
Alert box.
参数
fault:Fault — The fault object encapsulating server fault.
| |
flags:uint (default = 0x0004 ) — The buttons to be present on the Alert dialog.
| |
closeHandler:Function (default = null ) — The function to be called when the user clicks the button on the alert
|
handleFault | () | 方法 |
public static function handleFault(fault:Fault, asset:*):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Helper method for handling server faults.
This method reads the fault code from the passed fault
object, pulls the relevant error message from the resource bundle, fills
it with details if required and shows it to the user in form of an
Alert box.
参数
fault:Fault — The fault object encapsulating server fault.
| |
asset:* — The related asset for which the fault occured.
|
handleValidationFault | () | 方法 |
public static function handleValidationFault(evt:AssetValidationEvent):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Helper method for handling client domain validation errors.
This method identifies the validation failure cause and displays suitable error message to the user in form of an Alert box.
参数
evt:AssetValidationEvent — The AssetValidationEvent event
raised by the domain object during validation.
|
showMessage | () | 方法 |
public static function showMessage(msgTitle:String, msgText:String, closeHandler:Function = null, messageType:String = null, flags:uint = 0x0004):void
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
Helper method for handling Document Composer user messages.
This method pulls the relevant user message from the resource bundle, fills it with details if required and shows it to the user in form of an Alert box.
参数
msgTitle:String — The Message Title to be displayed in the Alert Window.
| |
msgText:String — The Message text to be shown in the Alert dialog.
| |
closeHandler:Function (default = null ) — The function to be called when the user clicks the button on the alert
| |
messageType:String (default = null ) — The string value specifying the type of message in order to show the
respective icon. The types can be Warning,Info, Error or OK icon.
| |
flags:uint (default = 0x0004 ) — The uint value speciying the buttons to be shown on the Alert box.
|
Error_Icon | 常量 |
public static const Error_Icon:* = Error
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The constant specifying the Error Icon.
Info_Icon | 常量 |
public static const Info_Icon:* = Info
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The constant specifying the Info Icon.
Ok_Icon | 常量 |
public static const Ok_Icon:* = Ok
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The constant specifying the OK Icon.
Warning_Icon | 常量 |
public static const Warning_Icon:* = Warning
语言版本: | ActionScript 3.0 |
产品版本: | Asset Composer Building Block 10 |
运行时版本: | AIR (unsupported), Flash Player 10.2 |
The constant specifying the Warning Icon.
Tue Jun 12 2018, 11:04 AM Z