DeviceDisconnectedException
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)
|
|
公用建構函式
DeviceDisconnectedException
public DeviceDisconnectedException (String msg,
String serial)建立 DeviceUnresponsiveException。
| 參數 | |
|---|---|
msg |
String:說明性訊息。 |
serial |
String:相關裝置的序號。 |
DeviceDisconnectedException
public DeviceDisconnectedException (String msg,
String serial,
ErrorIdentifier errorId)建立 DeviceUnresponsiveException。
| 參數 | |
|---|---|
msg |
String:說明性訊息。 |
serial |
String:相關裝置的序號。 |
errorId |
ErrorIdentifier:此錯誤的錯誤 ID。 |
DeviceDisconnectedException
public DeviceDisconnectedException (String msg,
Throwable cause,
String serial)建立 DeviceUnresponsiveException。
| 參數 | |
|---|---|
msg |
String:說明性訊息。 |
cause |
Throwable:導致裝置無法使用的根源 Throwable。 |
serial |
String:相關裝置的序號。 |
DeviceDisconnectedException
public DeviceDisconnectedException (String msg,
Throwable cause,
String serial,
ErrorIdentifier errorId)建立 DeviceUnresponsiveException。
| 參數 | |
|---|---|
msg |
String:說明性訊息。 |
cause |
Throwable:導致裝置無法使用的根源 Throwable。 |
serial |
String:相關裝置的序號。 |
errorId |
ErrorIdentifier:此錯誤的錯誤 ID。 |