DeviceNotAvailableException

public class DeviceNotAvailableException
extends HarnessException

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


Wyjątek ten jest rzucany, gdy urządzenie nie jest już dostępne do testowania. Przykład: połączenie adb z urządzeniem zostało utracone, urządzenie przestało odpowiadać na polecenia itp.

Podsumowanie

Konstruktory publiczne

DeviceNotAvailableException()

Ten konstruktor został wycofany. Zamiast niej użyj DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier).

DeviceNotAvailableException(String msg)

Ten konstruktor został wycofany. Zamiast niej użyj DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier).

DeviceNotAvailableException(String msg, String serial)

Tworzy DeviceNotAvailableException.

DeviceNotAvailableException(String msg, String serial, ErrorIdentifier errorId)

Tworzy DeviceNotAvailableException.

DeviceNotAvailableException(String msg, Throwable cause, String serial)

Tworzy DeviceNotAvailableException.

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

Tworzy DeviceNotAvailableException.

Metody publiczne

String getSerial()

Zwraca numer seryjny urządzenia powiązanego z wyjątkiem.

Konstruktory publiczne

DeviceNotAvailableException

public DeviceNotAvailableException ()

Ten konstruktor został wycofany.
Zamiast niej użyj zasady DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier).

Tworzy DeviceNotAvailableException.

DeviceNotAvailableException

public DeviceNotAvailableException (String msg)

Ten konstruktor został wycofany.
Zamiast niej użyj zasady DeviceNotAvailableException(String, String, com.android.tradefed.result.error.ErrorIdentifier).

Tworzy DeviceNotAvailableException.

Parametry
msg String: wiadomość opisująca problem.

DeviceNotAvailableException

public DeviceNotAvailableException (String msg, 
                String serial)

Tworzy DeviceNotAvailableException.

Parametry
msg String: wiadomość opisująca problem.

serial String: numer seryjny urządzenia,

DeviceNotAvailableException

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

Tworzy DeviceNotAvailableException.

Parametry
msg String: wiadomość opisująca problem.

serial String: numer seryjny urządzenia,

errorId ErrorIdentifier: identyfikator błędu.

DeviceNotAvailableException

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

Tworzy DeviceNotAvailableException.

Parametry
msg String: wiadomość opisująca problem.

cause Throwable: główna przyczyna Throwable, która spowodowała, że urządzenie jest niedostępne.

serial String: numer seryjny urządzenia, którego dotyczy wyjątek

DeviceNotAvailableException

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

Tworzy DeviceNotAvailableException.

Parametry
msg String: wiadomość opisująca problem.

cause Throwable: główna przyczyna Throwable, która spowodowała, że urządzenie jest niedostępne.

serial String: numer seryjny urządzenia, którego dotyczy wyjątek

errorId ErrorIdentifier: identyfikator błędu.

Metody publiczne

getSerial

public String getSerial ()

Zwraca numer seryjny urządzenia powiązanego z wyjątkiem.

Zwroty
String