DeviceRuntimeException

public class DeviceRuntimeException
extends HarnessRuntimeException

java.lang.Object
java.lang.Throwable
  java.lang.Exception
    java.lang.RuntimeException
      com.android.tradefed.error.HarnessRuntimeException
        com.android.tradefed.device.DeviceRuntimeException


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

Ad esempio, si prevede che "pm list users" restituisca l'elenco degli utenti. In caso contrario, deve essere generata un'eccezione DeviceRuntimeException perché si è verificato un problema grave.

Riepilogo

Costruttori pubblici

DeviceRuntimeException(String msg, ErrorIdentifier errorId)

Crea un'eccezione DeviceRuntimeException.

DeviceRuntimeException(String msg, Throwable t, ErrorIdentifier errorId)

Crea un'eccezione DeviceRuntimeException.

Costruttori pubblici

DeviceRuntimeException

public DeviceRuntimeException (String msg, 
                ErrorIdentifier errorId)

Crea un'eccezione 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'eccezione DeviceRuntimeException.

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

t Throwable: Throwable che deve essere racchiuso in DeviceRuntimeException.

errorId ErrorIdentifier: Il ErrorIdentifier che classifica l'eccezione.