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 (Throwable cause, ErrorIdentifier errorId)
HarnessException (String message, 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 (Throwable cause, 
                ErrorIdentifier errorId)

פרמטרים
cause Throwable

errorId ErrorIdentifier

HarnessException

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

פרמטרים
message String

cause Throwable

errorId ErrorIdentifier

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

getErrorId

public ErrorIdentifier getErrorId ()

מחזירה את ErrorIdentifier המשויך לחריג. יכול להיות ריק.

החזרות
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