DeviceRuntimeException
public class DeviceRuntimeException
extends HarnessRuntimeException
java.lang.Object | ||
↳ | com.android.tradefed.error.HarnessRuntimeException | |
↳ | com.android.tradefed.device.DeviceRuntimeException |
Generato quando un'azione del dispositivo non ha prodotto i risultati previsti.
Ad esempio: è ampiamente previsto che "pm list users" restituisca l'elenco di utenti, in caso contrario dovrebbe essere generato come DeviceRuntimeException poiché qualcosa è andato storto.
Riepilogo
Costruttori pubblici | |
---|---|
DeviceRuntimeException (String msg, ErrorIdentifier errorId) Crea | |
DeviceRuntimeException (String msg, Throwable t, ErrorIdentifier errorId) Crea |
Costruttori pubblici
DeviceRuntimeException
public DeviceRuntimeException (String msg, ErrorIdentifier errorId)
Crea DeviceRuntimeException
.
Parametri | |
---|---|
msg | String : un messaggio di errore descrittivo dell'errore. |
errorId | ErrorIdentifier : ErrorIdentifier classifica l'eccezione. |
DeviceRuntimeException
public DeviceRuntimeException (String msg, Throwable t, ErrorIdentifier errorId)
Crea DeviceRuntimeException
.
Parametri | |
---|---|
msg | String : un messaggio di errore descrittivo dell'errore |
t | Throwable : Throwable che dovrebbe essere racchiuso in DeviceRuntimeException . |
errorId | ErrorIdentifier : ErrorIdentifier classifica l'eccezione. |