HarnessException

public class HarnessException
extends Object implements IHarnessException

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


Classe de exceção base para exceção lançada dentro do chicote. Esta classe ajuda a transportar ErrorIdentifier para relatar os detalhes da falha.

Resumo

Construtores públicos

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

Métodos públicos

ErrorIdentifier getErrorId ()

Retorna o ErrorIdentifier associado à exceção.

String getOrigin ()

Retorna a origem da exceção.

String toString ()

Métodos protegidos

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

Construtores 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 (Throwable cause, 
                ErrorIdentifier errorId)

Parâmetros
cause Throwable

errorId ErrorIdentifier

HarnessException

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

Parâmetros
message String

cause Throwable

errorId ErrorIdentifier

Métodos públicos

getErrorId

public ErrorIdentifier getErrorId ()

Retorna o ErrorIdentifier associado à exceção. Pode ser nulo.

Devoluções
ErrorIdentifier

obterOrigem

public String getOrigin ()

Retorna a origem da exceção.

Devoluções
String

para sequenciar

public String toString ()

Devoluções
String

Métodos protegidos

definirCallerClass

protected final void setCallerClass (Class<?> clazz)

Parâmetros
clazz Class

definirCallerClass

protected final void setCallerClass (String clazz)

Parâmetros
clazz String