Google cam kết thúc đẩy công bằng chủng tộc cho Cộng đồng người da đen. Xem cách thực hiện.
Trang này được dịch bởi Cloud Translation API.
Switch to English

DeviceRuntimeException

public class DeviceRuntimeException
extends Object

java.lang.Object
   ↳ 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.