DeviceRuntimeException

public class DeviceRuntimeException
extends HarnessRuntimeException

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


Wyjątek ten jest rzucany, gdy działanie urządzenia nie przynosi oczekiwanych rezultatów.

Na przykład: „pm list users” ma zwracać listę użytkowników, a w przypadku błędu należy wywołać DeviceRuntimeException, ponieważ coś poszło nie tak.

Podsumowanie

Konstruktory publiczne

DeviceRuntimeException(String msg, ErrorIdentifier errorId)

Tworzy DeviceRuntimeException.

DeviceRuntimeException(String msg, Throwable t, ErrorIdentifier errorId)

Tworzy DeviceRuntimeException.

Konstruktory publiczne

DeviceRuntimeException

public DeviceRuntimeException (String msg, 
                ErrorIdentifier errorId)

Tworzy DeviceRuntimeException.

Parametry
msg String: opisowy komunikat o błędzie.

errorId ErrorIdentifier: ErrorIdentifier kategoryzujący wyjątek.

DeviceRuntimeException

public DeviceRuntimeException (String msg, 
                Throwable t, 
                ErrorIdentifier errorId)

Tworzy DeviceRuntimeException.

Parametry
msg String: opisowy komunikat o błędzie

t Throwable: Throwable, który powinien być zapakowany w DeviceRuntimeException.

errorId ErrorIdentifier: ErrorIdentifier kategoryzujący wyjątek.