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 でラップする Throwable

errorId ErrorIdentifier: 例外を分類する ErrorIdentifier