DeviceRuntimeException

public class DeviceRuntimeException
extends HarnessRuntimeException

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


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

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

סיכום

‫constructors ציבוריים

DeviceRuntimeException(String msg, ErrorIdentifier errorId)

יצירת DeviceRuntimeException.

DeviceRuntimeException(String msg, Throwable t, ErrorIdentifier errorId)

יצירת DeviceRuntimeException.

‫constructors ציבוריים

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