DeviceRuntimeException

public class DeviceRuntimeException
extends HarnessRuntimeException

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


ההודעה הזו מתקבלת כשפעולה במכשיר לא מניבה את התוצאות הצפויות.

לדוגמה: הפקודה 'pm list users' אמורה להחזיר את רשימת המשתמשים. אם היא לא עושה זאת, צריך להעלות את השגיאה DeviceRuntimeException כי משהו השתבש מאוד.

סיכום

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

DeviceRuntimeException(String msg, ErrorIdentifier errorId)

יצירת DeviceRuntimeException.

DeviceRuntimeException(String msg, Throwable t, ErrorIdentifier errorId)

יצירת DeviceRuntimeException.

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

DeviceRuntimeException

public DeviceRuntimeException (String msg, 
                ErrorIdentifier errorId)

יצירת DeviceRuntimeException.

פרמטרים
msg String: הודעת שגיאה תיאורית של השגיאה.

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

DeviceRuntimeException

public DeviceRuntimeException (String msg, 
                Throwable t, 
                ErrorIdentifier errorId)

יצירת DeviceRuntimeException.

פרמטרים
msg String: הודעת שגיאה תיאורית של השגיאה

t Throwable: Throwable שצריך לעטוף ב-DeviceRuntimeException.

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