HarnaisException

public class HarnessException
extends Object implements IHarnessException

java.lang.Object
com.android.tradefed.error.HarnessException


Classe d’exception de base pour les exceptions levées dans le faisceau. Cette classe aide à transporter ErrorIdentifier pour signaler les détails de l'échec.

Résumé

Constructeurs publics

HarnessException ( ErrorIdentifier errorId)
HarnessException (String message, ErrorIdentifier errorId)
HarnessException (Throwable cause, ErrorIdentifier errorId)
HarnessException (String message, Throwable cause, ErrorIdentifier errorId)

Méthodes publiques

ErrorIdentifier getErrorId ()

Renvoie l' ErrorIdentifier associé à l'exception.

String getOrigin ()

Renvoie l'origine de l'exception.

String toString ()

Méthodes protégées

final void setCallerClass (Class<?> clazz)
final void setCallerClass (String clazz)

Constructeurs publics

HarnaisException

public HarnessException (ErrorIdentifier errorId)

Paramètres
errorId ErrorIdentifier

HarnaisException

public HarnessException (String message, 
                ErrorIdentifier errorId)

Paramètres
message String

errorId ErrorIdentifier

HarnaisException

public HarnessException (Throwable cause, 
                ErrorIdentifier errorId)

Paramètres
cause Throwable

errorId ErrorIdentifier

HarnaisException

public HarnessException (String message, 
                Throwable cause, 
                ErrorIdentifier errorId)

Paramètres
message String

cause Throwable

errorId ErrorIdentifier

Méthodes publiques

getErrorId

public ErrorIdentifier getErrorId ()

Renvoie l' ErrorIdentifier associé à l'exception. Peut être nul.

Retour
ErrorIdentifier

obtenirOrigine

public String getOrigin ()

Renvoie l'origine de l'exception.

Retour
String

versChaîne

public String toString ()

Retour
String

Méthodes protégées

setCallerClass

protected final void setCallerClass (Class<?> clazz)

Paramètres
clazz Class

setCallerClass

protected final void setCallerClass (String clazz)

Paramètres
clazz String