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


סיכום

‫constructors ציבוריים

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 של החריגה.

‫methods ציבוריים

ErrorIdentifier getErrorId()

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

String getOrigin()

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

String toString()

שיטות מוגנות

final void setCallerClass(Class<?> clazz)

‫constructors ציבוריים

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 שמסווג את החריג.

‫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