com.android.ddmlib
Class SyncException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.android.ddmlib.CanceledException
              extended by com.android.ddmlib.SyncException
All Implemented Interfaces:
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

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

SyncException

public SyncException(SyncException.SyncError error)

SyncException

public SyncException(SyncException.SyncError error,
                     String message)

SyncException

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

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


Copyright © 2008-2012. All Rights Reserved.