com.android.ddmlib
Class AdbCommandRejectedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.android.ddmlib.AdbCommandRejectedException
All Implemented Interfaces:
Serializable

public class AdbCommandRejectedException
extends Exception

Exception thrown when adb refuses a command.

See Also:
Serialized Form

Method Summary
 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.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

isDeviceOffline

public boolean isDeviceOffline()
Returns true if the error is due to the device being offline.


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.



Copyright © 2008-2012. All Rights Reserved.