SubprocessExceptionParser
public
class
SubprocessExceptionParser
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.SubprocessExceptionParser |
Helper to handle the exception output from standard Tradefed command runners.
Summary
Constants | |
|---|---|
String |
EVENT_THREAD_JOIN
|
Public constructors | |
|---|---|
SubprocessExceptionParser()
|
|
Public methods | |
|---|---|
static
String
|
getPathFromStderr(String stderr)
Extract the file path of the serialized exception. |
static
void
|
handleStderrException(CommandResult result)
Attempt to extract a proper exception from stderr, if not stick to RuntimeException. |
Constants
EVENT_THREAD_JOIN
public static final String EVENT_THREAD_JOIN
Constant Value: "Event receiver thread did not complete."
Public constructors
SubprocessExceptionParser
public SubprocessExceptionParser ()
Public methods
getPathFromStderr
public static String getPathFromStderr (String stderr)
Extract the file path of the serialized exception.
| Parameters | |
|---|---|
stderr |
String |
| Returns | |
|---|---|
String |
|
handleStderrException
public static void handleStderrException (CommandResult result)
Attempt to extract a proper exception from stderr, if not stick to RuntimeException.
| Parameters | |
|---|---|
result |
CommandResult |
| Throws | |
|---|---|
DeviceNotAvailableException |
|