HarnessException

public class HarnessException
extends Exception implements IHarnessException

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


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

סיכום

‫constructors ציבוריים

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

‫methods ציבוריים

ErrorIdentifier getErrorId()

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

String getOrigin()

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

String toString()

שיטות מוגנות

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

‫constructors ציבוריים

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

‫methods ציבוריים

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