AdbCommandRejectedException
public
class
AdbCommandRejectedException
extends Object
| java.lang.Object | |
| ↳ | com.android.ddmlib.AdbCommandRejectedException |
Exception thrown when adb refuses a command.
Summary
Public constructors | |
|---|---|
AdbCommandRejectedException(String message)
|
|
AdbCommandRejectedException(String message, boolean errorDuringDeviceSelection)
|
|
Public methods | |
|---|---|
static
AdbCommandRejectedException
|
create(String message)
This method is deprecated. This method should only be used by ddmlib to adblib migration code. |
boolean
|
isDeviceOffline()
Returns true if the error is due to the device being offline. |
boolean
|
wasErrorDuringDeviceSelection()
Returns whether adb refused to target a given device for the command. |
Public constructors
AdbCommandRejectedException
public AdbCommandRejectedException (String message)
| Parameters | |
|---|---|
message |
String |
AdbCommandRejectedException
public AdbCommandRejectedException (String message,
boolean errorDuringDeviceSelection)| Parameters | |
|---|---|
message |
String |
errorDuringDeviceSelection |
boolean |
Public methods
create
public static AdbCommandRejectedException create (String message)
This method is deprecated.
This method should only be used by ddmlib to adblib migration code.
| Parameters | |
|---|---|
message |
String |
| Returns | |
|---|---|
AdbCommandRejectedException |
|
isDeviceOffline
public boolean isDeviceOffline ()
Returns true if the error is due to the device being offline.
| Returns | |
|---|---|
boolean |
|
wasErrorDuringDeviceSelection
public boolean wasErrorDuringDeviceSelection ()
Returns whether adb refused to target a given device for the command.
If false, adb refused the command itself, if true, it refused to target the given device.
| Returns | |
|---|---|
boolean |
|