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。可以为 null。
| 返回 | |
|---|---|
ErrorIdentifier |
|
getOrigin
public String getOrigin ()
返回异常的来源。
| 返回 | |
|---|---|
String |
|
toString
public String toString ()
| 返回 | |
|---|---|
String |
|
受保护的方法
setCallerClass
protected final void setCallerClass (Class<?> clazz)
| 参数 | |
|---|---|
clazz |
Class |