SyncException

public class SyncException
extends CanceledException

java.lang.Object
   ↳ com.android.ddmlib.CanceledException
     ↳ com.android.ddmlib.SyncException


Exception thrown when a transfer using ERROR(/SyncService) doesn't complete.

This is different from an ERROR(/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.

Summary

Public constructors

SyncException(SyncException.SyncError error)
SyncException(SyncException.SyncError error, String message)
SyncException(SyncException.SyncError error, Throwable cause)

Public methods

SyncException.SyncError getErrorCode()
boolean wasCanceled()

Returns true if the sync was canceled by user input.

Public constructors

SyncException

public SyncException (SyncException.SyncError error)

Parameters
error SyncException.SyncError

SyncException

public SyncException (SyncException.SyncError error, 
                String message)

Parameters
error SyncException.SyncError

message String

SyncException

public SyncException (SyncException.SyncError error, 
                Throwable cause)

Parameters
error SyncException.SyncError

cause Throwable

Public methods

getErrorCode

public SyncException.SyncError getErrorCode ()

Returns
SyncException.SyncError

wasCanceled

public boolean wasCanceled ()

Returns true if the sync was canceled by user input.

Returns
boolean