Class SyncException

  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by
              extended by
All Implemented Interfaces:

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

Nested Class Summary
static class SyncException.SyncError
Constructor Summary
SyncException(SyncException.SyncError error)
SyncException(SyncException.SyncError error, String message)
SyncException(SyncException.SyncError error, Throwable cause)
Method Summary
 SyncException.SyncError getErrorCode()
 boolean wasCanceled()
          Returns true if the sync was canceled by user input.
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

Constructor Detail


public SyncException(SyncException.SyncError error)


public SyncException(SyncException.SyncError error,
                     String message)


public SyncException(SyncException.SyncError error,
                     Throwable cause)
Method Detail


public SyncException.SyncError getErrorCode()


public boolean wasCanceled()
Returns true if the sync was canceled by user input.

Specified by:
wasCanceled in class CanceledException

Copyright © 2008-2012. All Rights Reserved.