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 : Throwable که باید در DeviceRuntimeException پیچیده شود.

errorId ErrorIdentifier : ErrorIdentifier استثناها را دسته بندی می کند.