HarnessException
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(String message, Throwable cause, ErrorIdentifier errorId)
|
|
HarnessException(Throwable cause, ErrorIdentifier errorId)
|
|
パブリック メソッド | |
|---|---|
ErrorIdentifier
|
getErrorId()
例外に関連付けられた |
String
|
getOrigin()
例外の発生元を返します。 |
String
|
toString()
|
保護されたメソッド | |
|---|---|
final
void
|
setCallerClass(Class<?> clazz)
|
final
void
|
setCallerClass(String clazz)
|
パブリック コンストラクタ
HarnessException
public HarnessException (String message,
ErrorIdentifier errorId)| パラメータ | |
|---|---|
message |
String |
errorId |
ErrorIdentifier |
HarnessException
public HarnessException (String message,
Throwable cause,
ErrorIdentifier errorId)| パラメータ | |
|---|---|
message |
String |
cause |
Throwable |
errorId |
ErrorIdentifier |
HarnessException
public HarnessException (Throwable cause,
ErrorIdentifier errorId)| パラメータ | |
|---|---|
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 |