DeviceRuntimeException

public class DeviceRuntimeException
extends RuntimeException

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.lang.RuntimeException
         ↳ 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)

Creates a DeviceRuntimeException.

DeviceRuntimeException(Throwable t)

Creates a DeviceRuntimeException.

DeviceRuntimeException(String msg, Throwable t)

Creates a DeviceRuntimeException.

Public constructors

DeviceRuntimeException

public DeviceRuntimeException (String msg)

Creates a DeviceRuntimeException.

Parameters
msg String: a descriptive error message of the error.

DeviceRuntimeException

public DeviceRuntimeException (Throwable t)

Creates a DeviceRuntimeException.

Parameters
t Throwable: Throwable that should be wrapped in DeviceRuntimeException.

DeviceRuntimeException

public DeviceRuntimeException (String msg, 
                Throwable t)

Creates a DeviceRuntimeException.

Parameters
msg String: a descriptive error message of the error

t Throwable: Throwable that should be wrapped in DeviceRuntimeException.