DeviceRuntimeException
  public
  
  
  
  class
  DeviceRuntimeException
  
  
  
  
    extends HarnessRuntimeException
  
  
  
  
  
  
| java.lang.Object | ||
| ↳ | com.android.tradefed.error.HarnessRuntimeException | |
| ↳ | com.android.tradefed.device.DeviceRuntimeException | |
Se genera 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(String msg, Throwable t, ErrorIdentifier errorId)
      Crea un  | |
Constructores públicos
DeviceRuntimeException
public DeviceRuntimeException (String msg, 
                ErrorIdentifier errorId)Crea un DeviceRuntimeException.
| Parámetros | |
|---|---|
| msg | String: Un mensaje de error descriptivo. | 
| errorId | ErrorIdentifier: Es elErrorIdentifierque clasifica la excepción. | 
DeviceRuntimeException
public DeviceRuntimeException (String msg, 
                Throwable t, 
                ErrorIdentifier errorId)Crea un DeviceRuntimeException.
| Parámetros | |
|---|---|
| msg | String: Un mensaje de error descriptivo | 
| t | Throwable:Throwableque se debe unir enDeviceRuntimeException. | 
| errorId | ErrorIdentifier: Es elErrorIdentifierque clasifica la excepción. | 
