SubprocessExceptionParser

public class SubprocessExceptionParser
extends Object

java.lang.Object
   ↳ com.android.tradefed.util.SubprocessExceptionParser


Assistant permettant de gérer la sortie d'exception des exécuteurs de commandes Tradefed standards.

Résumé

Champs

public static final String EVENT_THREAD_JOIN

Constructeurs publics

SubprocessExceptionParser()

Méthodes publiques

static String getPathFromStderr(String stderr)

Extrayez le chemin d'accès du fichier de l'exception sérialisée.

static void handleStderrException(CommandResult result)

Tentative d'extraction d'une exception appropriée à partir de stderr, sinon tenez-vous-en à RuntimeException.

Champs

EVENT_THREAD_JOIN

public static final String EVENT_THREAD_JOIN

Constructeurs publics

SubprocessExceptionParser

public SubprocessExceptionParser ()

Méthodes publiques

getPathFromStderr

public static String getPathFromStderr (String stderr)

Extrayez le chemin d'accès du fichier de l'exception sérialisée.

Paramètres
stderr String

Renvoie
String

handleStderrException

public static void handleStderrException (CommandResult result)

Tentative d'extraction d'une exception appropriée à partir de stderr, sinon tenez-vous-en à RuntimeException.

Paramètres
result CommandResult

Génère
DeviceNotAvailableException