SubprocessExceptionParser

public class SubprocessExceptionParser
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.SubprocessExceptionParser


標準の Tradefed コマンド ランナーからの例外出力を処理するヘルパー。

概要

定数

String EVENT_THREAD_JOIN

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

SubprocessExceptionParser()

パブリック メソッド

static String getPathFromStderr(String stderr)

シリアル化された例外のファイルパスを抽出します。

static void handleStderrException(CommandResult result)

stderr から適切な例外を抽出しようとします。抽出できない場合は RuntimeException を使用します。

定数

EVENT_THREAD_JOIN

public static final String EVENT_THREAD_JOIN

定数値: 「イベント レシーバ スレッドが完了しませんでした。」

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

SubprocessExceptionParser

public SubprocessExceptionParser ()

パブリック メソッド

getPathFromStderr

public static String getPathFromStderr (String stderr)

シリアル化された例外のファイルパスを抽出します。

パラメータ
stderr String

戻り値
String

handleStderrException

public static void handleStderrException (CommandResult result)

stderr から適切な例外を抽出しようとします。抽出できない場合は RuntimeException を使用します。

パラメータ
result CommandResult

例外
DeviceNotAvailableException