하위 프로세스 예외 구문 분석기

public class SubprocessExceptionParser
extends Object

java.lang.객체
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

handleStderrException

public static void handleStderrException (CommandResult result)

RuntimeException을 고수하지 않는 경우 stderr에서 적절한 예외를 추출하려고 시도합니다.

매개변수
result CommandResult

던지기
DeviceNotAvailableException