HarnessRuntimeException

public class HarnessRuntimeException
extends RuntimeException implements IHarnessException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
    java.lang.RuntimeException
      com.android.tradefed.error.HarnessRuntimeException


Résumé

Constructeurs publics

HarnessRuntimeException(String message, IHarnessException cause)

Constructeur de l'exception.

HarnessRuntimeException(String message, ErrorIdentifier errorId)

Constructeur de l'exception.

HarnessRuntimeException(String message, ErrorIdentifier defaultError, IHarnessException cause)

Constructeur de l'exception.

HarnessRuntimeException(String message, Throwable cause, ErrorIdentifier errorId)

Constructeur de l'exception.

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)

Constructeurs publics

HarnessRuntimeException

public HarnessRuntimeException (String message, 
                IHarnessException cause)

Constructeur de l'exception.

Paramètres
message String : message associé à l'exception

cause IHarnessException : IHarnessException à l'origine de l'exception.

HarnessRuntimeException

public HarnessRuntimeException (String message, 
                ErrorIdentifier errorId)

Constructeur de l'exception.

Paramètres
message String : message associé à l'exception

errorId ErrorIdentifier : Le ErrorIdentifier catégorisant l'exception.

HarnessRuntimeException

public HarnessRuntimeException (String message, 
                ErrorIdentifier defaultError, 
                IHarnessException cause)

Constructeur de l'exception.

Paramètres
message String : message associé à l'exception.

defaultError ErrorIdentifier : ErrorIdentifier à appliquer s'il n'est pas défini dans l'exception.

cause IHarnessException : IHarnessException à l'origine de l'exception.

HarnessRuntimeException

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

Constructeur de l'exception.

Paramètres
message String : message associé à l'exception

cause Throwable : cause de l'exception

errorId ErrorIdentifier : Le ErrorIdentifier catégorisant l'exception.

Méthodes publiques

getErrorId

public ErrorIdentifier getErrorId ()

Renvoie l'ErrorIdentifier associé à l'exception. Ce paramètre peut présenter la valeur null.

Renvoie
ErrorIdentifier

getOrigin

public String getOrigin ()

Renvoie l'origine de l'exception.

Renvoie
String

toString

public String toString ()

Renvoie
String

Méthodes protégées

setCallerClass

protected final void setCallerClass (Class<?> clazz)

Paramètres
clazz Class