HarnessRuntimeException
public
class
HarnessRuntimeException
extends Object
implements
IHarnessException
| java.lang.Object | |
| ↳ | com.android.tradefed.error.HarnessRuntimeException |
摘要
公用建構函式 | |
|---|---|
HarnessRuntimeException(String message, IHarnessException cause)
例外狀況的建構函式。 |
|
HarnessRuntimeException(String message, ErrorIdentifier errorId)
例外狀況的建構函式。 |
|
HarnessRuntimeException(String message, ErrorIdentifier defaultError, IHarnessException cause)
例外狀況的建構函式。 |
|
HarnessRuntimeException(String message, Throwable cause, ErrorIdentifier errorId)
例外狀況的建構函式。 |
|
公用方法 | |
|---|---|
ErrorIdentifier
|
getErrorId()
傳回與例外狀況相關聯的 |
String
|
getOrigin()
傳回例外狀況的來源。 |
String
|
toString()
|
受保護的方法 | |
|---|---|
final
void
|
setCallerClass(Class<?> clazz)
|
公用建構函式
HarnessRuntimeException
public HarnessRuntimeException (String message,
IHarnessException cause)例外狀況的建構函式。
| 參數 | |
|---|---|
message |
String:與例外狀況相關聯的訊息 |
cause |
IHarnessException:導致例外狀況的 IHarnessException。 |
HarnessRuntimeException
public HarnessRuntimeException (String message,
ErrorIdentifier errorId)例外狀況的建構函式。
| 參數 | |
|---|---|
message |
String:與例外狀況相關聯的訊息 |
errorId |
ErrorIdentifier:將例外狀況分類的 ErrorIdentifier。 |
HarnessRuntimeException
public HarnessRuntimeException (String message,
ErrorIdentifier defaultError,
IHarnessException cause)例外狀況的建構函式。
| 參數 | |
|---|---|
message |
String:與例外狀況相關聯的訊息。 |
defaultError |
ErrorIdentifier:如果未在例外狀況中設定,則套用的 ErrorIdentifier。 |
cause |
IHarnessException:導致例外狀況的 IHarnessException。 |
HarnessRuntimeException
public HarnessRuntimeException (String message,
Throwable cause,
ErrorIdentifier errorId)例外狀況的建構函式。
| 參數 | |
|---|---|
message |
String:與例外狀況相關聯的訊息 |
cause |
Throwable:例外狀況的原因 |
errorId |
ErrorIdentifier:將例外狀況分類的 ErrorIdentifier。 |
公用方法
getErrorId
public ErrorIdentifier getErrorId ()
傳回與例外狀況相關聯的 ErrorIdentifier。可為空值。
| 傳回 | |
|---|---|
ErrorIdentifier |
|
getOrigin
public String getOrigin ()
傳回例外狀況的來源。
| 傳回 | |
|---|---|
String |
|
toString
public String toString ()
| 傳回 | |
|---|---|
String |
|
受保護的方法
setCallerClass
protected final void setCallerClass (Class<?> clazz)
| 參數 | |
|---|---|
clazz |
Class |