ハーネス例外

public class HarnessException
extends Object implements IHarnessException

java.lang.Object
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

getOrigin

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