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 el ErrorIdentifier que 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 : Throwable que se debe unir en DeviceRuntimeException . |
errorId |
ErrorIdentifier : Es el ErrorIdentifier que clasifica la excepción. |