DeviceRuntimeException

public class DeviceRuntimeException
extends HarnessRuntimeException

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


يتم إلقاؤه عندما لا يؤدي إجراء الجهاز إلى النتائج المتوقعة.

على سبيل المثال: يُتوقع إلى حد كبير أن تقوم "قائمة المستخدمين في قائمة المساء" بإرجاع قائمة المستخدمين ، ويجب رفع الفشل في القيام بذلك باعتباره 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 يصنف الاستثناء.