HarnessRuntimeException

public class HarnessRuntimeException
extends Object implements IHarnessException

java.lang.Object
   ↳ com.android.tradefed.error.HarnessRuntimeException


סיכום

קונסטרוקטורים גלויים לכולם

HarnessRuntimeException(String message, IHarnessException cause)

ה-constructor של החריגה.

HarnessRuntimeException(String message, ErrorIdentifier errorId)

ה-constructor של החריגה.

HarnessRuntimeException(String message, ErrorIdentifier defaultError, IHarnessException cause)

ה-constructor של החריגה.

HarnessRuntimeException(String message, Throwable cause, ErrorIdentifier errorId)

ה-constructor של החריגה.

שיטות ציבוריות

ErrorIdentifier getErrorId()

הפונקציה מחזירה את הערך של ErrorIdentifier שמשויך לחריגה.

String getOrigin()

הפונקציה מחזירה את המקור של החריגה.

String toString()

שיטות מוגנות

final void setCallerClass(Class<?> clazz)

קונסטרוקטורים גלויים לכולם

HarnessRuntimeException

public HarnessRuntimeException (String message, 
                IHarnessException cause)

ה-constructor של החריגה.

פרמטרים
message String: ההודעה שמשויכת לחריג

cause IHarnessException: ה-IHarnessException שגרם לחריגה.

HarnessRuntimeException

public HarnessRuntimeException (String message, 
                ErrorIdentifier errorId)

ה-constructor של החריגה.

פרמטרים
message String: ההודעה שמשויכת לחריג

errorId ErrorIdentifier: ה-ErrorIdentifier שמסווג את החריג.

HarnessRuntimeException

public HarnessRuntimeException (String message, 
                ErrorIdentifier defaultError, 
                IHarnessException cause)

ה-constructor של החריגה.

פרמטרים
message String: ההודעה שמשויכת לחריג.

defaultError ErrorIdentifier: ה-ErrorIdentifier שיחול אם לא הוגדר בחריגה.

cause IHarnessException: ה-IHarnessException שגרם לחריגה.

HarnessRuntimeException

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

ה-constructor של החריגה.

פרמטרים
message String: ההודעה שמשויכת לחריג

cause Throwable: הגורם לחריגה

errorId ErrorIdentifier: ה-ErrorIdentifier שמסווג את החריג.

שיטות ציבוריות

getErrorId

public ErrorIdentifier getErrorId ()

הפונקציה מחזירה את הערך של ErrorIdentifier שמשויך לחריגה. הערך יכול להיות null.

החזרות
ErrorIdentifier

getOrigin

public String getOrigin ()

הפונקציה מחזירה את המקור של החריגה.

החזרות
String

toString

public String toString ()

החזרות
String

שיטות מוגנות

setCallerClass

protected final void setCallerClass (Class<?> clazz)

פרמטרים
clazz Class