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)

Attempt to extract a proper exception from stderr, if not stick to RuntimeException.

常數

EVENT_THREAD_JOIN

public static final String EVENT_THREAD_JOIN

常數值: 「Event receiver thread did not complete.」

公用建構函式

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