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 | |||
Podsumowanie
Konstruktory publiczne | |
|---|---|
HarnessRuntimeException(String message, IHarnessException cause)
Konstruktor wyjątku. |
|
HarnessRuntimeException(String message, ErrorIdentifier errorId)
Konstruktor wyjątku. |
|
HarnessRuntimeException(String message, ErrorIdentifier defaultError, IHarnessException cause)
Konstruktor wyjątku. |
|
HarnessRuntimeException(String message, Throwable cause, ErrorIdentifier errorId)
Konstruktor wyjątku. |
|
Metody publiczne | |
|---|---|
ErrorIdentifier
|
getErrorId()
Zwraca |
String
|
getOrigin()
Zwraca źródło wyjątku. |
String
|
toString()
|
Metody chronione | |
|---|---|
final
void
|
setCallerClass(Class<?> clazz)
|
Konstruktory publiczne
HarnessRuntimeException
public HarnessRuntimeException (String message,
IHarnessException cause)Konstruktor wyjątku.
| Parametry | |
|---|---|
message |
String: wiadomość powiązana z wyjątkiem |
cause |
IHarnessException: IHarnessException, który spowodował wyjątek. |
HarnessRuntimeException
public HarnessRuntimeException (String message,
ErrorIdentifier errorId)Konstruktor wyjątku.
| Parametry | |
|---|---|
message |
String: wiadomość powiązana z wyjątkiem |
errorId |
ErrorIdentifier: ErrorIdentifier, która kategoryzuje wyjątek. |
HarnessRuntimeException
public HarnessRuntimeException (String message,
ErrorIdentifier defaultError,
IHarnessException cause)Konstruktor wyjątku.
| Parametry | |
|---|---|
message |
String: Wiadomość powiązana z wyjątkiem. |
defaultError |
ErrorIdentifier: ErrorIdentifier, który ma być zastosowany, jeśli nie jest ustawiony w wyjątku. |
cause |
IHarnessException: IHarnessException, który spowodował wyjątek. |
HarnessRuntimeException
public HarnessRuntimeException (String message,
Throwable cause,
ErrorIdentifier errorId)Konstruktor wyjątku.
| Parametry | |
|---|---|
message |
String: wiadomość powiązana z wyjątkiem |
cause |
Throwable: przyczyna wyjątku |
errorId |
ErrorIdentifier: ErrorIdentifier, która kategoryzuje wyjątek. |
Metody publiczne
getErrorId
public ErrorIdentifier getErrorId ()
Zwraca ErrorIdentifier powiązany z wyjątkiem. Może mieć wartość null.
| Zwraca | |
|---|---|
ErrorIdentifier |
|
getOrigin
public String getOrigin ()
Zwraca źródło wyjątku.
| Zwraca | |
|---|---|
String |
|
toString
public String toString ()
| Zwraca | |
|---|---|
String |
|
Metody chronione
setCallerClass
protected final void setCallerClass (Class<?> clazz)
| Parametry | |
|---|---|
clazz |
Class |