com.android.ddmlib
Class SyncException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.android.ddmlib.CanceledException
com.android.ddmlib.SyncException
- All Implemented Interfaces:
- java.io.Serializable
public class SyncException
- extends CanceledException
Exception thrown when a transfer using SyncService
doesn't complete.
This is different from an IOException
because it's not the underlying connection
that triggered the error, but the adb transfer protocol that didn't work somehow, or that the
targets (local and/or remote) were wrong.
- See Also:
- Serialized Form
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 |
SyncException
public SyncException(SyncException.SyncError error)
SyncException
public SyncException(SyncException.SyncError error,
java.lang.String message)
SyncException
public SyncException(SyncException.SyncError error,
java.lang.Throwable cause)
getErrorCode
public SyncException.SyncError getErrorCode()
wasCanceled
public boolean wasCanceled()
- Returns true if the sync was canceled by user input.
- Specified by:
wasCanceled
in class CanceledException