子進程異常解析器
public class SubprocessExceptionParser
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.SubprocessExceptionParser |
用於處理標準 Tradefed 命令運行程序的異常輸出的幫助程序。
概括
公共構造函數 | |
---|---|
SubprocessExceptionParser () |
公共方法 | |
---|---|
static String | getPathFromStderr (String stderr) 提取序列化異常的文件路徑。 |
static void | handleStderrException ( CommandResult result) 嘗試從 stderr 中提取適當的異常,如果不堅持 RuntimeException。 |
公共構造函數
子進程異常解析器
public SubprocessExceptionParser ()
公共方法
getPathFromStderr
public static String getPathFromStderr (String stderr)
提取序列化異常的文件路徑。
參數 | |
---|---|
stderr | String |
退貨 | |
---|---|
String |
處理標準錯誤異常
public static void handleStderrException (CommandResult result)
嘗試從 stderr 中提取適當的異常,如果不堅持 RuntimeException。
參數 | |
---|---|
result | CommandResult |
投擲 | |
---|---|
DeviceNotAvailableException |