DeviceNotAvailableException
public
class
DeviceNotAvailableException
extends HarnessException
| java.lang.Object | ||
| ↳ | com.android.tradefed.error.HarnessException | |
| ↳ | com.android.tradefed.device.DeviceNotAvailableException | |
當裝置無法再用於測試時,系統會擲回此例外狀況,例如裝置已停止回應指令等
摘要
公用建構函式 | |
|---|---|
DeviceNotAvailableException()
This constructor is deprecated.
請改用 |
|
DeviceNotAvailableException(String msg)
This constructor is deprecated.
請改用 |
|
DeviceNotAvailableException(String msg, String serial)
|
|
DeviceNotAvailableException(String msg, String serial, ErrorIdentifier errorId)
|
|
DeviceNotAvailableException(String msg, Throwable cause, String serial)
|
|
DeviceNotAvailableException(String msg, Throwable cause, String serial, ErrorIdentifier errorId)
|
|
公用方法 | |
|---|---|
String
|
getSerial()
傳回與例外狀況相關聯的裝置序號。 |
公用建構函式
DeviceNotAvailableException
public DeviceNotAvailableException ()
This constructor is deprecated.
請改用 DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier)。
DeviceNotAvailableException
public DeviceNotAvailableException (String msg)
This constructor is deprecated.
請改用 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:此錯誤的錯誤 ID。 |
DeviceNotAvailableException
public DeviceNotAvailableException (String msg,
Throwable cause,
String serial)建立 DeviceNotAvailableException。
| 參數 | |
|---|---|
msg |
String:說明性訊息。 |
cause |
Throwable:導致裝置無法使用的根源 Throwable。 |
serial |
String:例外狀況所涉及裝置的序號 |
DeviceNotAvailableException
public DeviceNotAvailableException (String msg,
Throwable cause,
String serial,
ErrorIdentifier errorId)建立 DeviceNotAvailableException。
| 參數 | |
|---|---|
msg |
String:說明性訊息。 |
cause |
Throwable:導致裝置無法使用的根源 Throwable。 |
serial |
String:例外狀況所涉及裝置的序號 |
errorId |
ErrorIdentifier:此錯誤的錯誤 ID。 |
公用方法
getSerial
public String getSerial ()
傳回與例外狀況相關聯的裝置序號。
| 傳回 | |
|---|---|
String |
|