デバイスランタイム例外
public class DeviceRuntimeException
extends HarnessRuntimeException
java.lang.オブジェクト | ||
↳ | 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) |
パブリックコンストラクター
デバイスランタイム例外
public DeviceRuntimeException (String msg, ErrorIdentifier errorId)
DeviceRuntimeException
を作成します。
パラメーター | |
---|---|
msg | String : エラーの説明的なエラー メッセージ。 |
errorId | ErrorIdentifier : 例外を分類するErrorIdentifier 。 |
デバイスランタイム例外
public DeviceRuntimeException (String msg, Throwable t, ErrorIdentifier errorId)
DeviceRuntimeException
を作成します。
パラメーター | |
---|---|
msg | String : エラーの説明的なエラー メッセージ |
t | Throwable : DeviceRuntimeException にラップする必要があるThrowable 。 |
errorId | ErrorIdentifier : 例外を分類するErrorIdentifier 。 |