子進程異常解析器

public class SubprocessExceptionParser
extends Object

對象
com.android.tradefed.util.SubprocessExceptionParser


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

概括

公共構造函數

SubprocessExceptionParser ()

公共方法

static String getPathFromStderr (String stderr)

提取序列化異常的文件路徑。

static void handleStderrException (CommandResult result)

如果不堅持 RuntimeException,則嘗試從 stderr 中提取正確的異常。

公共構造函數

子進程異常解析器

public SubprocessExceptionParser ()

公共方法

getPathFromStderr

public static String getPathFromStderr (String stderr)

提取序列化異常的文件路徑。

參數
stderr String

退貨
String

處理標準異常

public static void handleStderrException (CommandResult result)

如果不堅持 RuntimeException,則嘗試從 stderr 中提取正確的異常。

參數
result CommandResult

投擲
DeviceNotAvailableException