SubprocessExceptionParser
public class SubprocessExceptionParser
extends Object
java.lang.Oggetto | |
↳ | com.android.tradefed.util.SubprocessExceptionParser |
Helper per gestire l'output dell'eccezione dai programmi di esecuzione dei comandi Tradefed standard.
Riepilogo
Costruttori pubblici | |
---|---|
SubprocessExceptionParser () |
Metodi pubblici | |
---|---|
static String | getPathFromStderr (String stderr) Estrarre il percorso del file dell'eccezione serializzata. |
static void | handleStderrException ( CommandResult result) Tentare di estrarre un'eccezione corretta da stderr, se non attenersi a RuntimeException. |
Costruttori pubblici
SubprocessExceptionParser
public SubprocessExceptionParser ()
Metodi pubblici
getPathFromStderr
public static String getPathFromStderr (String stderr)
Estrarre il percorso del file dell'eccezione serializzata.
Parametri | |
---|---|
stderr | String |
ritorna | |
---|---|
String |
handleStderrException
public static void handleStderrException (CommandResult result)
Tentare di estrarre un'eccezione corretta da stderr, se non attenersi a RuntimeException.
Parametri | |
---|---|
result | CommandResult |
Getta | |
---|---|
DeviceNotAvailableException |