子進程異常解析器

public class SubprocessExceptionParser
extends Object

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


用於處理標準 Tradefed 命令運行程序的異常輸出的幫助程序。

概括

領域

public static final String EVENT_THREAD_JOIN

公共構造函數

SubprocessExceptionParser ()

公共方法

static String getPathFromStderr (String stderr)

提取序列化異常的檔案路徑。

static void handleStderrException ( CommandResult result)

嘗試從 stderr 中提取適當的異常,如果不堅持使用 RuntimeException。

領域

事件線程加入

public static final String EVENT_THREAD_JOIN

公共構造函數

子進程異常解析器

public SubprocessExceptionParser ()

公共方法

從標準錯誤獲取路徑

public static String getPathFromStderr (String stderr)

提取序列化異常的檔案路徑。

參數
stderr String

退貨
String

處理StderrException

public static void handleStderrException (CommandResult result)

嘗試從 stderr 中提取適當的異常,如果不堅持使用 RuntimeException。

參數
result CommandResult

投擲
DeviceNotAvailableException