線束運轉時異常

public class HarnessRuntimeException
extends Object implements IHarnessException

java.lang.Object
com.android.tradefed.error.HarnessRuntimeException


概括

公共構造函數

HarnessRuntimeException (String message, ErrorIdentifier errorId)

異常的構造函數。

HarnessRuntimeException (String message, IHarnessException cause)

異常的構造函數。

HarnessRuntimeException (String message, Throwable cause, ErrorIdentifier errorId)

異常的構造函數。

公共方法

ErrorIdentifier getErrorId ()

傳回與異常關聯的ErrorIdentifier

String getOrigin ()

傳回異常的起源。

String toString ()

受保護的方法

final void setCallerClass (Class<?> clazz)

公共構造函數

線束運轉時異常

public HarnessRuntimeException (String message, 
                ErrorIdentifier errorId)

異常的構造函數。

參數
message String : 與異常相關的訊息

errorId ErrorIdentifier :對異常進行分類的ErrorIdentifier

線束運轉時異常

public HarnessRuntimeException (String message, 
                IHarnessException cause)

異常的構造函數。

參數
message String : 與異常相關的訊息

cause IHarnessException :導致異常的IHarnessException

線束運轉時異常

public HarnessRuntimeException (String message, 
                Throwable cause, 
                ErrorIdentifier errorId)

異常的構造函數。

參數
message String : 與異常相關的訊息

cause Throwable :異常的原因

errorId ErrorIdentifier :對異常進行分類的ErrorIdentifier

公共方法

取得錯誤ID

public ErrorIdentifier getErrorId ()

傳回與異常關聯的ErrorIdentifier 。可以為空。

退貨
ErrorIdentifier

取得原點

public String getOrigin ()

傳回異常的起源。

退貨
String

到字串

public String toString ()

退貨
String

受保護的方法

設定調用者類

protected final void setCallerClass (Class<?> clazz)

參數
clazz Class