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 لتصنيف الاستثناء