套件 | 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, 03:47 PM Z