適用於 Adobe® Flash® Platform 的 ActionScript® 3.0 參考
首頁  |  隱藏套件和類別清單 |  套件  |  類別  |  新增內容  |  索引  |  附錄  |  為什麼顯示英文?
篩選: 從伺服器擷取資料...
從伺服器擷取資料...
org.osmf.events 

MetricError  - AS3 OSMF

套件org.osmf.events
類別public class MetricError
繼承MetricError Inheritance Error Inheritance Object

語言版本: ActionScript 3.0
產品版本: OSMF 2.0
執行階段版本: Flash Player 10, AIR 1.5

A MetricError encapsulates an error related to the metrics used in the Adaptive Bitrate algorithm. Errors are represented as error IDs with corresponding messages. Error IDs zero through 999 are reserved for use by the framework.

A list of all possible framework-level errors can be found in the ABRErrorCodes class.

For custom errors, clients should subclass ABRError and override getMessageForErrorID to return messages for the custom errors.



公用屬性
 屬性定義自
 Inheritedconstructor : Object
類別物件的參照或是特定物件實體的建構函數。
Object
  detail : String
[唯讀] An optional string that contains supporting detail for the error.
MetricError
 InheritederrorID : int
[唯讀] 包含與特定錯誤訊息相關聯的參照號碼。
Error
 Inheritedmessage : String
包含與 Error 物件有關聯的訊息。
Error
 Inheritedname : String
包含 Error 物件的名稱。
Error
公用方法
 方法定義自
  
MetricError(errorID:int, detail:String = null)
Constructor.
MetricError
 Inherited
在錯誤建構時傳回字串形式的錯誤呼叫堆疊。
Error
 Inherited
指出物件是否有已定義的指定屬性。
Object
 Inherited
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。
Object
 Inherited
指出指定的屬性是否存在,以及是否可列舉。
Object
 Inherited
為迴圈作業設定動態屬性的可用性。
Object
 Inherited
傳回代表此物件的字串,根據地區特定慣例進行格式化。
Object
 Inherited
[覆寫] 傳回 "Error" 字串 (預設),或 Error.message 屬性中所包含的值 (如果已定義)。
Error
 Inherited
會傳回指定之物件的基本值。
Object
保護方法
 方法定義自
  
Returns the message for the error with the specified ID.
MetricError
屬性詳細資訊

detail

屬性
detail:String  [唯讀]

語言版本: ActionScript 3.0
產品版本: OSMF 2.0
執行階段版本: Flash Player 10, AIR 1.5

An optional string that contains supporting detail for the error. Typically this string is simply the error detail provided by a Flash Player API.



實作
    public function get detail():String
建構函式詳細資料

MetricError

()建構函式
public function MetricError(errorID:int, detail:String = null)

語言版本: ActionScript 3.0
產品版本: OSMF 2.0
執行階段版本: Flash Player 10, AIR 1.5

Constructor.

參數
errorID:int — The ID for the error. Used to look up a corresponding message. Error IDs 0-999 are reserved for use by the framework, and are defined in MetricErrorCodes.
 
detail:String (default = null) — An optional string that contains supporting detail for the error. Typically this string is simply the error detail provided by a Flash Player API.
方法詳細資訊

getMessageForErrorID

()方法
protected function getMessageForErrorID(errorID:int):String

語言版本: ActionScript 3.0
產品版本: OSMF 2.0
執行階段版本: Flash Player 10, AIR 1.5

Returns the message for the error with the specified ID. If the error ID is unknown, returns the empty string.

Subclasses should override to provide messages for their custom errors, as this method returns the value that is exposed in the message property.

參數

errorID:int — The ID for the error.

傳回值
String — The message for the error with the specified error ID.




[ X ]為什麼顯示英文?
「ActionScript 3.0 參考」的內容是以英文顯示

並非所有「ActionScript 3.0 參考」的內容都翻譯為所有語言。當語言元素未翻譯時,就會以英文顯示。例如,ga.controls.HelpBox 類別並沒有翻譯為任何語言。因此在參考的繁體中文版本中,ga.controls.HelpBox 類別就會以英文顯示。