DeviceRuntimeException

public class DeviceRuntimeException
extends HarnessRuntimeException

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


Généré lorsqu'une action sur l'appareil n'a pas produit les résultats attendus.

Par exemple, "pm list users" devrait renvoyer la liste des utilisateurs. En cas d'échec, une exception DeviceRuntimeException doit être générée, car un problème très grave s'est produit.

Résumé

Constructeurs publics

DeviceRuntimeException(String msg, ErrorIdentifier errorId)

Crée un objet DeviceRuntimeException.

DeviceRuntimeException(String msg, Throwable t, ErrorIdentifier errorId)

Crée un objet DeviceRuntimeException.

Constructeurs publics

DeviceRuntimeException

public DeviceRuntimeException (String msg, 
                ErrorIdentifier errorId)

Crée un objet DeviceRuntimeException.

Paramètres
msg String: message d'erreur descriptif de l'erreur.

errorId ErrorIdentifier: ErrorIdentifier qui catégorise l'exception.

DeviceRuntimeException

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

Crée un objet DeviceRuntimeException.

Paramètres
msg String: message d'erreur descriptif de l'erreur

t Throwable: Throwable à encapsuler dans DeviceRuntimeException.

errorId ErrorIdentifier: ErrorIdentifier qui catégorise l'exception.