HarnessException

public class HarnessException
extends Exception implements IHarnessException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.android.tradefed.error.HarnessException


Es la clase de excepción base para la excepción que se arroja dentro del arnés. Esta clase ayuda a llevar ErrorIdentifier para informar los detalles de la falla.

Resumen

Constructores públicos

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

Métodos públicos

ErrorIdentifier getErrorId()

Devuelve el ErrorIdentifier asociado con la excepción.

String getOrigin()

Devuelve el origen de la excepción.

String toString()

Métodos protegidos

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

Constructores públicos

HarnessException

public HarnessException (ErrorIdentifier errorId)

Parámetros
errorId ErrorIdentifier

HarnessException

public HarnessException (String message, 
                ErrorIdentifier errorId)

Parámetros
message String

errorId ErrorIdentifier

HarnessException

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

Parámetros
message String

cause Throwable

errorId ErrorIdentifier

HarnessException

public HarnessException (Throwable cause, 
                ErrorIdentifier errorId)

Parámetros
cause Throwable

errorId ErrorIdentifier

Métodos públicos

getErrorId

public ErrorIdentifier getErrorId ()

Devuelve el ErrorIdentifier asociado con la excepción. Puede ser nulo

Muestra
ErrorIdentifier

getOrigin

public String getOrigin ()

Devuelve el origen de la excepción.

Muestra
String

toString

public String toString ()

Muestra
String

Métodos protegidos

setCallerClass

protected final void setCallerClass (Class<?> clazz)

Parámetros
clazz Class

setCallerClass

protected final void setCallerClass (String clazz)

Parámetros
clazz String