DeviceNotAvailableException

public class DeviceNotAvailableException
extends HarnessException

java.lang.Object
com.android.tradefed.error.HarnessException
com.android.tradefed.device.DeviceNotAvailableException


当设备不再可用于测试时抛出。例如,与设备的 adb 连接已丢失,设备已停止响应命令等

概括

公共构造函数

DeviceNotAvailableException ()

此构造函数已弃用。请改用DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier)

DeviceNotAvailableException (String msg)

此构造函数已弃用。请改用DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier)

DeviceNotAvailableException (String msg, String serial)

创建DeviceNotAvailableException

DeviceNotAvailableException (String msg, String serial, ErrorIdentifier errorId)

创建DeviceNotAvailableException

DeviceNotAvailableException (String msg, Throwable cause, String serial)

创建DeviceNotAvailableException

DeviceNotAvailableException (String msg, Throwable cause, String serial, ErrorIdentifier errorId)

创建DeviceNotAvailableException

公共方法

String getSerial ()

返回与异常关联的设备的序列号。

公共构造函数

DeviceNotAvailableException

public DeviceNotAvailableException ()

此构造函数已弃用。
请改用DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier)

创建DeviceNotAvailableException

DeviceNotAvailableException

public DeviceNotAvailableException (String msg)

此构造函数已弃用。
请改用DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier)

创建DeviceNotAvailableException

参数
msg String :描述性消息。

DeviceNotAvailableException

public DeviceNotAvailableException (String msg, 
                String serial)

创建DeviceNotAvailableException

参数
msg String :描述性消息。

serial String : 相关设备的序列号

DeviceNotAvailableException

public DeviceNotAvailableException (String msg, 
                String serial, 
                ErrorIdentifier errorId)

创建DeviceNotAvailableException

参数
msg String :描述性消息。

serial String : 相关设备的序列号

errorId ErrorIdentifier :此错误的错误标识符。

DeviceNotAvailableException

public DeviceNotAvailableException (String msg, 
                Throwable cause, 
                String serial)

创建DeviceNotAvailableException

参数
msg String :描述性消息。

cause Throwable :导致设备不可用的根ERROR(/Throwable)

serial String : 异常涉及的设备序列号

DeviceNotAvailableException

public DeviceNotAvailableException (String msg, 
                Throwable cause, 
                String serial, 
                ErrorIdentifier errorId)

创建DeviceNotAvailableException

参数
msg String :描述性消息。

cause Throwable :导致设备变得不可用的根ERROR(/Throwable)

serial String : 异常涉及的设备序列号

errorId ErrorIdentifier :此错误的错误标识符。

公共方法

获取序列号

public String getSerial ()

返回与异常关联的设备的序列号。

退货
String