DeviceRuntimeException

public class DeviceRuntimeException
extends HarnessRuntimeException

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


Emesso quando un'azione del dispositivo non ha prodotto i risultati attesi.

Ad esempio: è previsto che "pm list users" restituisca l'elenco degli utenti, in caso contrario dovrebbe essere sollevata una DeviceRuntimeException poiché qualcosa è andato storto.

Riepilogo

Costruttori pubblici

DeviceRuntimeException (String msg, ErrorIdentifier errorId)

Crea una DeviceRuntimeException .

DeviceRuntimeException (String msg, Throwable t, ErrorIdentifier errorId)

Crea una DeviceRuntimeException .

Costruttori pubblici

DeviceRuntimeException

public DeviceRuntimeException (String msg, 
                ErrorIdentifier errorId)

Crea una DeviceRuntimeException .

Parametri
msg String : un messaggio di errore descrittivo dell'errore.

errorId ErrorIdentifier : ErrorIdentifier che classifica l'eccezione.

DeviceRuntimeException

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

Crea una DeviceRuntimeException .

Parametri
msg String : un messaggio di errore descrittivo dell'errore

t Throwable : Throwable che deve essere racchiuso in DeviceRuntimeException .

errorId ErrorIdentifier : ErrorIdentifier che classifica l'eccezione.