AdbCommandRejectedException
public
class
AdbCommandRejectedException
extends Object
| java.lang.Object | |
| ↳ | com.android.ddmlib.AdbCommandRejectedException |
Eccezione generata quando adb rifiuta un comando.
Riepilogo
Costruttori pubblici | |
|---|---|
AdbCommandRejectedException(String message)
|
|
AdbCommandRejectedException(String message, boolean errorDuringDeviceSelection)
|
|
Metodi pubblici | |
|---|---|
static
AdbCommandRejectedException
|
create(String message)
Questo metodo è obsoleto. Questo metodo deve essere utilizzato solo da ddmlib per il codice di migrazione adblib. |
boolean
|
isDeviceOffline()
Restituisce true se l'errore è dovuto al fatto che il dispositivo è offline. |
boolean
|
wasErrorDuringDeviceSelection()
Restituisce un valore che indica se adb si è rifiutato di scegliere come target un determinato dispositivo per il comando. |
Costruttori pubblici
AdbCommandRejectedException
public AdbCommandRejectedException (String message)
| Parametri | |
|---|---|
message |
String |
AdbCommandRejectedException
public AdbCommandRejectedException (String message,
boolean errorDuringDeviceSelection)| Parametri | |
|---|---|
message |
String |
errorDuringDeviceSelection |
boolean |
Metodi pubblici
crea
public static AdbCommandRejectedException create (String message)
Questo metodo è obsoleto.
Questo metodo deve essere utilizzato solo dal codice di migrazione da ddmlib ad adblib.
| Parametri | |
|---|---|
message |
String |
| Ritorni | |
|---|---|
AdbCommandRejectedException |
|
isDeviceOffline
public boolean isDeviceOffline ()
Restituisce true se l'errore è dovuto al fatto che il dispositivo è offline.
| Ritorni | |
|---|---|
boolean |
|
wasErrorDuringDeviceSelection
public boolean wasErrorDuringDeviceSelection ()
Restituisce un valore che indica se adb ha rifiutato di scegliere come target un determinato dispositivo per il comando.
Se il valore è false, adb ha rifiutato il comando stesso; se il valore è true, ha rifiutato di scegliere come target il dispositivo specificato.
| Ritorni | |
|---|---|
boolean |
|