DeviceRuntimeException

public class DeviceRuntimeException
extends HarnessRuntimeException

java.lang.Object
com.android.tradefed.error.HarnessRuntimeException
com.android.tradefed.device.DeviceRuntimeException


デバイス アクションが予期した結果にならなかった場合にスローされます。

例: 'pm list users' はユーザーのリストを返すことが非常に期待されていますが、これに失敗した場合は、何かが非常にうまくいかないため、DeviceRuntimeException として発生する必要があります。

まとめ

パブリック コンストラクター

DeviceRuntimeException (String msg, ErrorIdentifier errorId)

DeviceRuntimeExceptionを作成します。

DeviceRuntimeException (String msg, Throwable t, ErrorIdentifier errorId)

DeviceRuntimeExceptionを作成します。

パブリック コンストラクター

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にラップする必要があるERROR(/Throwable)

errorId ErrorIdentifier : 例外を分類するErrorIdentifier