DeviceNotAvailableException

public class DeviceNotAvailableException
extends HarnessException

java.lang.Object
   ↳ com.android.tradefed.error.HarnessException
     ↳ com.android.tradefed.device.DeviceNotAvailableException


يتم طرح هذا الخطأ عندما يصبح الجهاز غير متاح للاختبار، مثلاً عندما ينقطع اتصال adb بالجهاز أو عندما يتوقف الجهاز عن الاستجابة للأوامر أو غير ذلك.

ملخّص

وظائف الإنشاء العامة

DeviceNotAvailableException()

تم إيقاف هذا المُنشئ نهائيًا. استخدِم DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier) بدلاً منه.

DeviceNotAvailableException(String msg)

تم إيقاف هذا المُنشئ نهائيًا. استخدِم DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier) بدلاً منه.

DeviceNotAvailableException(String msg, String serial)

لإنشاء DeviceNotAvailableException.

DeviceNotAvailableException(String msg, String serial, ErrorIdentifier errorId)

لإنشاء DeviceNotAvailableException.

DeviceNotAvailableException(String msg, Throwable cause, String serial)

لإنشاء DeviceNotAvailableException.

DeviceNotAvailableException(String msg, Throwable cause, String serial, ErrorIdentifier errorId)

لإنشاء DeviceNotAvailableException.

الطرق العامة

String getSerial()

عرض الرقم التسلسلي للجهاز المرتبط بالاستثناء

وظائف الإنشاء العامة

DeviceNotAvailableException

public DeviceNotAvailableException ()

تم إيقاف هذا المُنشئ نهائيًا.
استخدِم DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier) بدلاً من ذلك.

لإنشاء DeviceNotAvailableException.

DeviceNotAvailableException

public DeviceNotAvailableException (String msg)

تم إيقاف هذا المُنشئ نهائيًا.
استخدِم DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier) بدلاً من ذلك.

لإنشاء DeviceNotAvailableException.

المعلمات
msg String: رسالة وصفية

DeviceNotAvailableException

public DeviceNotAvailableException (String msg, 
                String serial)

لإنشاء DeviceNotAvailableException.

المعلمات
msg String: رسالة وصفية

serial String: الرقم التسلسلي للجهاز المعني

DeviceNotAvailableException

public DeviceNotAvailableException (String msg, 
                String serial, 
                ErrorIdentifier errorId)

لإنشاء DeviceNotAvailableException.

المعلمات
msg String: رسالة وصفية

serial String: الرقم التسلسلي للجهاز المعني

errorId ErrorIdentifier: معرّف الخطأ لهذا الخطأ

DeviceNotAvailableException

public DeviceNotAvailableException (String msg, 
                Throwable cause, 
                String serial)

لإنشاء DeviceNotAvailableException.

المعلمات
msg String: رسالة وصفية

cause Throwable: الجذر Throwable الذي أدّى إلى عدم توفّر الجهاز

serial String: الرقم التسلسلي للجهاز المعنيّ بالاستثناء

DeviceNotAvailableException

public DeviceNotAvailableException (String msg, 
                Throwable cause, 
                String serial, 
                ErrorIdentifier errorId)

لإنشاء DeviceNotAvailableException.

المعلمات
msg String: رسالة وصفية

cause Throwable: الجذر Throwable الذي أدّى إلى عدم توفّر الجهاز

serial String: الرقم التسلسلي للجهاز المعنيّ بالاستثناء

errorId ErrorIdentifier: معرّف الخطأ لهذا الخطأ

الطرق العامة

getSerial

public String getSerial ()

عرض الرقم التسلسلي للجهاز المرتبط بالاستثناء

المرتجعات
String