Wyjątek wiązki przewodów

public class HarnessException
extends Object implements IHarnessException

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


Podstawowa klasa wyjątku dla wyjątku zgłoszonego w uprzęży. Ta klasa pomaga przenosić ErrorIdentifier do zgłaszania szczegółów awarii.

Streszczenie

Konstruktory publiczne

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

Metody publiczne

ErrorIdentifier getErrorId ()

Zwraca ErrorIdentifier skojarzony z wyjątkiem.

String getOrigin ()

Zwraca źródło wyjątku.

String toString ()

Metody chronione

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

Konstruktory publiczne

Wyjątek wiązki przewodów

public HarnessException (ErrorIdentifier errorId)

Parametry
errorId ErrorIdentifier

Wyjątek wiązki przewodów

public HarnessException (String message, 
                ErrorIdentifier errorId)

Parametry
message String

errorId ErrorIdentifier

Wyjątek wiązki przewodów

public HarnessException (Throwable cause, 
                ErrorIdentifier errorId)

Parametry
cause Throwable

errorId ErrorIdentifier

Wyjątek wiązki przewodów

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

Parametry
message String

cause Throwable

errorId ErrorIdentifier

Metody publiczne

getErrorId

public ErrorIdentifier getErrorId ()

Zwraca ErrorIdentifier skojarzony z wyjątkiem. Może być zerowy.

Zwroty
ErrorIdentifier

getOrigin

public String getOrigin ()

Zwraca źródło wyjątku.

Zwroty
String

do Ciągu

public String toString ()

Zwroty
String

Metody chronione

ustaw klasę rozmówcy

protected final void setCallerClass (Class<?> clazz)

Parametry
clazz Class

ustaw klasę rozmówcy

protected final void setCallerClass (String clazz)

Parametry
clazz String