設備斷開異常
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 :導致設備不可用的根ERROR(/Throwable) 。 |
serial | String : 相關設備的序列號。 |
設備斷開異常
public DeviceDisconnectedException (String msg, Throwable cause, String serial, ErrorIdentifier errorId)
創建DeviceUnresponsiveException
。
參數 | |
---|---|
msg | String :描述性消息。 |
cause | Throwable :導致設備不可用的根ERROR(/Throwable) 。 |
serial | String : 相關設備的序列號。 |
errorId | ErrorIdentifier :此錯誤的錯誤標識符。 |