DeviceNotAvailableException
public
class
DeviceNotAvailableException
extends HarnessException
| java.lang.Object | ||
| ↳ | com.android.tradefed.error.HarnessException | |
| ↳ | com.android.tradefed.device.DeviceNotAvailableException | |
デバイスをテストできなくなった場合にスローされます。例: デバイスへの adb 接続が失われた、デバイスがコマンドに応答しなくなったなど。
概要
パブリック コンストラクタ | |
|---|---|
DeviceNotAvailableException()
このコンストラクタは非推奨です。
代わりに |
|
DeviceNotAvailableException(String msg)
このコンストラクタは非推奨です。
代わりに |
|
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 ()
このコンストラクタは非推奨です。
代わりに DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier) を使用してください。
DeviceNotAvailableException を作成します。
DeviceNotAvailableException
public DeviceNotAvailableException (String msg)
このコンストラクタは非推奨です。
代わりに 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: このエラーのエラー識別子。 |
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: このエラーのエラー識別子。 |
パブリック メソッド
getSerial
public String getSerial ()
例外に関連付けられているデバイスのシリアル番号を返します。
| 戻り値 | |
|---|---|
String |
|