HarnessException

public class HarnessException
extends Object implements IHarnessException

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


מחלקת חריגה בסיסית לחריגה שהושקה בתוך ערכת הכלי. הכיתה הזו עוזרת לשאת את ErrorIdentifier כדי לדווח על פרטי הכשל.

סיכום

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

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

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

ErrorIdentifier getErrorId()

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

String getOrigin()

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

String toString()

שיטות מוגנות

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

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

HarnessException

public HarnessException (ErrorIdentifier errorId)

פרמטרים
errorId ErrorIdentifier

HarnessException

public HarnessException (String message, 
                ErrorIdentifier errorId)

פרמטרים
message String

errorId ErrorIdentifier

HarnessException

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

פרמטרים
message String

cause Throwable

errorId ErrorIdentifier

HarnessException

public HarnessException (Throwable cause, 
                ErrorIdentifier errorId)

פרמטרים
cause Throwable

errorId 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

setCallerClass

protected final void setCallerClass (String clazz)

פרמטרים
clazz String