DeviceNotAvailableException

public class DeviceNotAvailableException
extends HarnessException

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


Bir cihaz artık test için uygun olmadığında atılır. örneğin, cihaza olan adb bağlantısı kesildi, cihaz komutlara yanıt vermeyi durdurdu, vb.

Özet

kamu inşaatçılar

DeviceNotAvailableException ()

Bu yapıcı kullanımdan kaldırıldı. Bunun yerine DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier) ​​kullanın.

DeviceNotAvailableException (String msg)

Bu yapıcı kullanımdan kaldırıldı. Bunun yerine DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier) ​​kullanın.

DeviceNotAvailableException (String msg, String serial)

Bir DeviceNotAvailableException oluşturur.

DeviceNotAvailableException (String msg, String serial, ErrorIdentifier errorId)

Bir DeviceNotAvailableException oluşturur.

DeviceNotAvailableException (String msg, Throwable cause, String serial)

Bir DeviceNotAvailableException oluşturur.

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

Bir DeviceNotAvailableException oluşturur.

Genel yöntemler

String getSerial ()

İstisna ile ilişkili cihazın Seri Numarasını döndürür.

kamu inşaatçılar

DeviceNotAvailableException

public DeviceNotAvailableException ()

Bu yapıcı kullanımdan kaldırıldı.
Bunun yerine DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier) ​​kullanın.

Bir DeviceNotAvailableException oluşturur.

DeviceNotAvailableException

public DeviceNotAvailableException (String msg)

Bu yapıcı kullanımdan kaldırıldı.
Bunun yerine DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier) ​​kullanın.

Bir DeviceNotAvailableException oluşturur.

parametreler
msg String : açıklayıcı bir mesaj.

DeviceNotAvailableException

public DeviceNotAvailableException (String msg, 
                String serial)

Bir DeviceNotAvailableException oluşturur.

parametreler
msg String : açıklayıcı bir mesaj.

serial String : ilgili cihazın seri numarası

DeviceNotAvailableException

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

Bir DeviceNotAvailableException oluşturur.

parametreler
msg String : açıklayıcı bir mesaj.

serial String : ilgili cihazın seri numarası

errorId ErrorIdentifier : bu hata için hata tanımlayıcısı.

DeviceNotAvailableException

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

Bir DeviceNotAvailableException oluşturur.

parametreler
msg String : açıklayıcı bir mesaj.

cause Throwable : aygıtın kullanılamaz hale gelmesine neden olan kök ERROR(/Throwable) .

serial String : istisna ile ilgili cihazın seri numarası

DeviceNotAvailableException

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

Bir DeviceNotAvailableException oluşturur.

parametreler
msg String : açıklayıcı bir mesaj.

cause Throwable : aygıtın kullanılamaz hale gelmesine neden olan kök ERROR(/Throwable) .

serial String : istisna ile ilgili cihazın seri numarası

errorId ErrorIdentifier : bu hata için hata tanımlayıcısı.

Genel yöntemler

getSerial

public String getSerial ()

İstisna ile ilişkili cihazın Seri Numarasını döndürür.

İadeler
String