DeviceRuntimeException
public
class
DeviceRuntimeException
extends HarnessRuntimeException
| java.lang.Object | ||
| ↳ | com.android.tradefed.error.HarnessRuntimeException | |
| ↳ | com.android.tradefed.device.DeviceRuntimeException | |
Thrown when a device action did not results in the expected results.
For example: 'pm list users' is vastly expected to return the list of users, failure to do so should be raised as a DeviceRuntimeException since something went very wrong.
Summary
Public constructors | |
|---|---|
DeviceRuntimeException(String msg, ErrorIdentifier errorId)
Creates a |
|
DeviceRuntimeException(String msg, Throwable t, ErrorIdentifier errorId)
Creates a |
|
Public constructors
DeviceRuntimeException
public DeviceRuntimeException (String msg,
ErrorIdentifier errorId)Creates a DeviceRuntimeException.
| Parameters | |
|---|---|
msg |
String: a descriptive error message of the error. |
errorId |
ErrorIdentifier: The ErrorIdentifier categorizing the exception. |
DeviceRuntimeException
public DeviceRuntimeException (String msg,
Throwable t,
ErrorIdentifier errorId)Creates a DeviceRuntimeException.
| Parameters | |
|---|---|
msg |
String: a descriptive error message of the error |
t |
Throwable: Throwable that should be wrapped in DeviceRuntimeException. |
errorId |
ErrorIdentifier: The ErrorIdentifier categorizing the exception. |