设备断开异常
public class DeviceDisconnectedException
extends DeviceNotAvailableException
java.lang.Object | |||
↳ | com.android.tradefed.error.HarnessException | ||
↳ | com.android.tradefed.device.DeviceNotAvailableException | ||
↳ | com.android.tradefed.device.DeviceDisconnectedException |
当设备无法再通过其传输类型访问时抛出,例如,如果设备不再通过 USB 或 TCP/IP 连接可见
概括
公共构造函数 | |
---|---|
DeviceDisconnectedException (String msg, String serial) | |
DeviceDisconnectedException (String msg, String serial, ErrorIdentifier errorId) | |
DeviceDisconnectedException (String msg, Throwable cause, String serial) | |
DeviceDisconnectedException (String msg, Throwable cause, String serial, ErrorIdentifier errorId) |
公共构造函数
设备断开异常
public DeviceDisconnectedException (String msg, String serial)
创建一个DeviceUnresponsiveException
。
参数 | |
---|---|
msg | String :描述性消息。 |
serial | String :相关设备的序列号。 |
设备断开异常
public DeviceDisconnectedException (String msg, String serial, ErrorIdentifier errorId)
创建一个DeviceUnresponsiveException
。
参数 | |
---|---|
msg | String :描述性消息。 |
serial | String :相关设备的序列号。 |
errorId | ErrorIdentifier :此错误的错误标识符。 |
设备断开异常
public DeviceDisconnectedException (String msg, Throwable cause, String serial)
创建一个DeviceUnresponsiveException
。
参数 | |
---|---|
msg | String :描述性消息。 |
cause | Throwable :导致设备不可用的根Throwable 。 |
serial | String :相关设备的序列号。 |
设备断开异常
public DeviceDisconnectedException (String msg, Throwable cause, String serial, ErrorIdentifier errorId)
创建一个DeviceUnresponsiveException
。
参数 | |
---|---|
msg | String :描述性消息。 |
cause | Throwable :导致设备不可用的根Throwable 。 |
serial | String :相关设备的序列号。 |
errorId | ErrorIdentifier :此错误的错误标识符。 |