קל לארגן דפים בעזרת אוספים אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.

DeviceRuntimeException

public class DeviceRuntimeException
extends HarnessRuntimeException

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


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

לדוגמה: 'משתמשי רשימת pm' צפויים להחזיר את רשימת המשתמשים, אי ביצוע זה צריך להיות מועלה כ-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 : ניתן DeviceRuntimeException Throwable

errorId ErrorIdentifier : ה- ErrorIdentifier את החריג.