ハーネス例外

public class HarnessException
extends Object implements IHarnessException

java.lang.オブジェクト
com.android.tradefed.error.HarnessException


ハーネス内でスローされる例外の基本例外クラス。このクラスは、エラーの詳細を報告するためのErrorIdentifierを運ぶのに役立ちます。

まとめ

パブリックコンストラクター

HarnessException ( ErrorIdentifier errorId)
HarnessException (String message, ErrorIdentifier errorId)
HarnessException (Throwable cause, ErrorIdentifier errorId)
HarnessException (String message, Throwable cause, ErrorIdentifier errorId)

パブリックメソッド

ErrorIdentifier getErrorId ()

例外に関連付けられたErrorIdentifierを返します。

String getOrigin ()

例外の原因を返します。

String toString ()

保護されたメソッド

final void setCallerClass (Class<?> clazz)
final void setCallerClass (String clazz)

パブリックコンストラクター

ハーネス例外

public HarnessException (ErrorIdentifier errorId)

パラメーター
errorId ErrorIdentifier

ハーネス例外

public HarnessException (String message, 
                ErrorIdentifier errorId)

パラメーター
message String

errorId ErrorIdentifier

ハーネス例外

public HarnessException (Throwable cause, 
                ErrorIdentifier errorId)

パラメーター
cause Throwable

errorId ErrorIdentifier

ハーネス例外

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

パラメーター
message String

cause Throwable

errorId ErrorIdentifier

パブリックメソッド

getErrorId

public ErrorIdentifier getErrorId ()

例外に関連付けられたErrorIdentifierを返します。 null にすることもできます。

戻り値
ErrorIdentifier

原点の取得

public String getOrigin ()

例外の原因を返します。

戻り値
String

toString

public String toString ()

戻り値
String

保護されたメソッド

setCallerClass

protected final void setCallerClass (Class<?> clazz)

パラメーター
clazz Class

setCallerClass

protected final void setCallerClass (String clazz)

パラメーター
clazz String