Wyjątek uprzęży

public class HarnessException
extends Object implements IHarnessException

Obiekt Java.lang.Object
com.android.tradefed.error.HarnessException


Podstawowa klasa wyjątku dla wyjątku zgłoszonego w uprzęży. Ta klasa pomaga w przenoszeniu ErrorIdentifier w celu raportowania szczegółów błędu.

Streszczenie

Konstruktorzy publiczni

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 powiązany 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)

Konstruktorzy publiczni

Wyjątek uprzęży

public HarnessException (ErrorIdentifier errorId)

Parametry
errorId ErrorIdentifier

Wyjątek uprzęży

public HarnessException (String message, 
                ErrorIdentifier errorId)

Parametry
message String

errorId ErrorIdentifier

Wyjątek uprzęży

public HarnessException (Throwable cause, 
                ErrorIdentifier errorId)

Parametry
cause Throwable

errorId ErrorIdentifier

Wyjątek uprzęży

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

Parametry
message String

cause Throwable

errorId ErrorIdentifier

Metody publiczne

getErrorId

public ErrorIdentifier getErrorId ()

Zwraca ErrorIdentifier powiązany z wyjątkiem. Może mieć wartość zerową.

Zwroty
ErrorIdentifier

pobierzOrigin

public String getOrigin ()

Zwraca źródło wyjątku.

Zwroty
String

doString

public String toString ()

Zwroty
String

Metody chronione

ustaw klasę dzwoniącego

protected final void setCallerClass (Class<?> clazz)

Parametry
clazz Class

ustaw klasę dzwoniącego

protected final void setCallerClass (String clazz)

Parametry
clazz String