DeviceNotAvailableException

public class DeviceNotAvailableException
extends Exception

java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ com.android.tradefed.device.DeviceNotAvailableException
Known Direct Subclasses
DeviceDisconnectedException Thrown when a device is no longer reachable via it's transport type. 
DeviceUnresponsiveException A specialization of DeviceNotAvailableException that indicates device is visible to adb, but is unresponsive (ie commands timing out, won't boot, etc)  


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

DeviceNotAvailableException ()

Creates a DeviceNotAvailableException.

DeviceNotAvailableException

DeviceNotAvailableException (String msg)

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

Creates a DeviceNotAvailableException.

Parameters
msg String: a descriptive message.

DeviceNotAvailableException

DeviceNotAvailableException (String msg, 
                String serial)

Creates a DeviceNotAvailableException.

Parameters
msg String: a descriptive message.
serial String: the serial of the device concerned

DeviceNotAvailableException

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

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

String getSerial ()

Return Serial of the device associated with exception.

Returns
String