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


Se arroja cuando una acción del dispositivo no genera los resultados esperados.

Por ejemplo, se espera que "pm list users" muestre la lista de usuarios. Si no lo hace, se debe generar una DeviceRuntimeException, ya que algo salió muy mal.

Resumen

Constructores públicos

DeviceRuntimeException(String msg, ErrorIdentifier errorId)

Crea un DeviceRuntimeException.

DeviceRuntimeException(String msg, Throwable t, ErrorIdentifier errorId)

Crea un DeviceRuntimeException.

Constructores públicos

DeviceRuntimeException

public DeviceRuntimeException (String msg, 
                ErrorIdentifier errorId)

Crea un DeviceRuntimeException.

Parámetros
msg String: Es un mensaje de error descriptivo del error.

errorId ErrorIdentifier: Es el ErrorIdentifier que categoriza la excepción.

DeviceRuntimeException

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

Crea un DeviceRuntimeException.

Parámetros
msg String: Es un mensaje de error descriptivo del error.

t Throwable: Es el Throwable que se debe incluir en DeviceRuntimeException.

errorId ErrorIdentifier: Es el ErrorIdentifier que categoriza la excepción.