DeviceRuntimeException

public class DeviceRuntimeException
extends HarnessRuntimeException

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


Viene generato quando un'azione del dispositivo non ha prodotto i risultati previsti.

Ad esempio, "pm list users" dovrebbe restituire l'elenco degli utenti. Se ciò non avviene, deve essere sollevato un errore DeviceRuntimeException poiché si è verificato un problema grave.

Riepilogo

Costruttori pubblici

DeviceRuntimeException(String msg, ErrorIdentifier errorId)

Crea un DeviceRuntimeException.

DeviceRuntimeException(String msg, Throwable t, ErrorIdentifier errorId)

Crea un DeviceRuntimeException.

Costruttori pubblici

DeviceRuntimeException

public DeviceRuntimeException (String msg, 
                ErrorIdentifier errorId)

Crea un DeviceRuntimeException.

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

errorId ErrorIdentifier: il ErrorIdentifier che classifica l'eccezione.

DeviceRuntimeException

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

Crea un DeviceRuntimeException.

Parametri
msg String: un messaggio di errore descrittivo

t Throwable: Throwable che deve essere racchiuso in DeviceRuntimeException.

errorId ErrorIdentifier: il ErrorIdentifier che classifica l'eccezione.