线束运行时异常

public class HarnessRuntimeException
extends Object implements IHarnessException

java.lang.Object
com.android.tradefed.error.HarnessRuntimeException


概括

公共构造函数

HarnessRuntimeException (String message, ErrorIdentifier errorId)

异常的构造函数。

HarnessRuntimeException (String message, IHarnessException cause)

异常的构造函数。

HarnessRuntimeException (String message, Throwable cause, ErrorIdentifier errorId)

异常的构造函数。

公共方法

ErrorIdentifier getErrorId ()

返回与异常关联的ErrorIdentifier

String getOrigin ()

返回异常的起源。

String toString ()

受保护的方法

final void setCallerClass (Class<?> clazz)

公共构造函数

线束运行时异常

public HarnessRuntimeException (String message, 
                ErrorIdentifier errorId)

异常的构造函数。

参数
message String : 与异常相关的消息

errorId ErrorIdentifier :对异常进行分类的ErrorIdentifier

线束运行时异常

public HarnessRuntimeException (String message, 
                IHarnessException cause)

异常的构造函数。

参数
message String : 与异常相关的消息

cause IHarnessException :导致异常的IHarnessException

线束运行时异常

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

异常的构造函数。

参数
message String : 与异常相关的消息

cause Throwable :异常的原因

errorId ErrorIdentifier :对异常进行分类的ErrorIdentifier

公共方法

获取错误ID

public ErrorIdentifier getErrorId ()

返回与异常关联的ErrorIdentifier 。可以为空。

退货
ErrorIdentifier

获取原点

public String getOrigin ()

返回异常的起源。

退货
String

到字符串

public String toString ()

退货
String

受保护的方法

设置调用者类

protected final void setCallerClass (Class<?> clazz)

参数
clazz Class