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

DeviceNotAvailableException

public class DeviceNotAvailableException
extends Object

java.lang.Object
   ↳ com.android.tradefed.device.DeviceNotAvailableException


Thrown when a device is no longer available for testing. e.g. the adb connection to the device has been lost, device has stopped responding to commands, etc

Summary

Public constructors

DeviceNotAvailableException()

Creates a DeviceNotAvailableException.

DeviceNotAvailableException(String msg)

This constructor is deprecated. use DeviceNotAvailableException(String, String) instead

DeviceNotAvailableException(String msg, String serial)

Creates a DeviceNotAvailableException.

DeviceNotAvailableException(String msg, Throwable cause)

This constructor is deprecated. use DeviceNotAvailableException(String, Throwable, String) instead

DeviceNotAvailableException(String msg, Throwable cause, String serial)

Creates a DeviceNotAvailableException.

Public methods

String getSerial()

Return Serial of the device associated with exception.

Public constructors

DeviceNotAvailableException

public DeviceNotAvailableException ()

Creates a DeviceNotAvailableException.

DeviceNotAvailableException

public DeviceNotAvailableException (String msg)

This constructor is deprecated.
use DeviceNotAvailableException(String, String) instead

Creates a DeviceNotAvailableException.

Parameters
msg String: a descriptive message.

DeviceNotAvailableException

public DeviceNotAvailableException (String msg, 
                String serial)

Creates a DeviceNotAvailableException.

Parameters
msg String: a descriptive message.

serial String: the serial of the device concerned

DeviceNotAvailableException

public DeviceNotAvailableException (String msg, 
                Throwable cause)

This constructor is deprecated.
use DeviceNotAvailableException(String, Throwable, String) instead

Creates a DeviceNotAvailableException.

Parameters
msg String: a descriptive message.

cause Throwable: the root Throwable that caused the device to become unavailable.

DeviceNotAvailableException

public DeviceNotAvailableException (String msg, 
                Throwable cause, 
                String serial)

Creates a DeviceNotAvailableException.

Parameters
msg String: a descriptive message.

cause Throwable: the root Throwable that caused the device to become unavailable.

serial String: the serial of the device concerned by the exception

Public methods

getSerial

public String getSerial ()

Return Serial of the device associated with exception.

Returns
String