public class SyncException extends CanceledException
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.
Modifier and Type | Class and Description |
---|---|
static class |
SyncException.SyncError |
Constructor and Description |
---|
SyncException(SyncException.SyncError error) |
SyncException(SyncException.SyncError error,
java.lang.String message) |
SyncException(SyncException.SyncError error,
java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
SyncException.SyncError |
getErrorCode() |
boolean |
wasCanceled()
Returns true if the sync was canceled by user input.
|
public SyncException(SyncException.SyncError error)
public SyncException(SyncException.SyncError error, java.lang.String message)
public SyncException(SyncException.SyncError error, java.lang.Throwable cause)
public SyncException.SyncError getErrorCode()
public boolean wasCanceled()
wasCanceled
in class CanceledException