设备无响应异常
public class DeviceUnresponsiveException
extends DeviceNotAvailableException
java.lang.Object | |||
↳ | com.android.tradefed.error.HarnessException | ||
↳ | com.android.tradefed.device.DeviceNotAvailableException | ||
↳ | com.android.tradefed.device.DeviceUnresponsiveException |
DeviceNotAvailableException
的特化,表示设备对 adb 可见,但无响应(即命令超时、无法启动等)
概括
公共构造函数 | |
---|---|
DeviceUnresponsiveException (String msg, String serial) | |
DeviceUnresponsiveException (String msg, String serial, ErrorIdentifier errorId) | |
DeviceUnresponsiveException (String msg, Throwable cause, String serial) | |
DeviceUnresponsiveException (String msg, Throwable cause, String serial, ErrorIdentifier errorId) |
公共构造函数
设备无响应异常
public DeviceUnresponsiveException (String msg, String serial)
创建一个DeviceUnresponsiveException
。
参数 | |
---|---|
msg | String :描述性消息。 |
serial | String :相关设备的序列号。 |
设备无响应异常
public DeviceUnresponsiveException (String msg, String serial, ErrorIdentifier errorId)
创建一个DeviceUnresponsiveException
。
参数 | |
---|---|
msg | String :描述性消息。 |
serial | String :相关设备的序列号。 |
errorId | ErrorIdentifier :此错误的错误标识符。 |
设备无响应异常
public DeviceUnresponsiveException (String msg, Throwable cause, String serial)
创建一个DeviceUnresponsiveException
。
参数 | |
---|---|
msg | String :描述性消息。 |
cause | Throwable :导致设备不可用的根Throwable 。 |
serial | String :相关设备的序列号。 |
设备无响应异常
public DeviceUnresponsiveException (String msg, Throwable cause, String serial, ErrorIdentifier errorId)
创建一个DeviceUnresponsiveException
。
参数 | |
---|---|
msg | String :描述性消息。 |
cause | Throwable :导致设备不可用的根Throwable 。 |
serial | String :相关设备的序列号。 |
errorId | ErrorIdentifier :此错误的错误标识符。 |