Starting March 27, 2025, we recommend using android-latest-release instead of aosp-main to build and contribute to AOSP. For more information, see Changes to AOSP.
Stay organized with collections
Save and categorize content based on your preferences.
SyncException
public
class
SyncException
extends CanceledException
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
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
wasCanceled
public boolean wasCanceled ()
Returns true if the sync was canceled by user input.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-12-04 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-04 UTC."],[],[]]