Add support for message and cause to SyncFailedException.
This will allow more informative exceptions to be thrown.
@@ -32,7 +32,13 @@ public final class SyncScope {
private SyncScope() {}
/** Checked exception representing a failed sync action. */
- public static class SyncFailedException extends Exception {}
+ public static class SyncFailedException extends Exception {
+ public SyncFailedException() {}
+
+ public SyncFailedException(String message, Throwable cause) {
+ super(message, cause);
+ }
+ }
/** Checked exception representing a cancelled sync action. */
public static class SyncCanceledException extends Exception {}
