DeviceRuntimeException
public
class
DeviceRuntimeException
extends HarnessRuntimeException
| java.lang.Object | |||||
| ↳ | java.lang.Throwable | ||||
| ↳ | java.lang.Exception | ||||
| ↳ | java.lang.RuntimeException | ||||
| ↳ | com.android.tradefed.error.HarnessRuntimeException | ||||
| ↳ | com.android.tradefed.device.DeviceRuntimeException | ||||
デバイス アクションが予期した結果にならなかった場合にスローされます。
たとえば、「pm list users」はユーザーのリストを返すことが想定されますが、そうならない場合 は、何らかの重大な問題が発生しているため、DeviceRuntimeException として発生させる必要があります。
概要
パブリック コンストラクタ | |
|---|---|
DeviceRuntimeException(String msg, ErrorIdentifier errorId)
|
|
DeviceRuntimeException(String msg, Throwable t, ErrorIdentifier errorId)
|
|
パブリック コンストラクタ
DeviceRuntimeException
public DeviceRuntimeException (String msg,
ErrorIdentifier errorId)DeviceRuntimeException を作成します。
| パラメータ | |
|---|---|
msg |
String: エラーの説明的なエラー メッセージ。 |
errorId |
ErrorIdentifier: 例外を分類する ErrorIdentifier。 |
DeviceRuntimeException
public DeviceRuntimeException (String msg,
Throwable t,
ErrorIdentifier errorId)DeviceRuntimeException を作成します。
| パラメータ | |
|---|---|
msg |
String: エラーの説明的なエラー メッセージ。 |
t |
Throwable: DeviceRuntimeException でラップする必要がある Throwable。 |
errorId |
ErrorIdentifier: 例外を分類する ErrorIdentifier。 |