Skip to content

Commit 06a554e

Browse files
committed
feat(sync_error): new SyncError values
1 parent f4540c0 commit 06a554e

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## [1.12.0]
2+
3+
* Added new `SyncError` values:
4+
* `clientTimeout`: Interrupted by client timeout.
5+
* `syncIsNotActive`: Synchronization is not active. Sync was disabled during or before the attempt.
6+
17
## [1.11.0]
28

39
* Added `hasUnsyncedChanges()` method.

lib/src/sync_state_info.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,14 @@ enum SyncError {
9595
/// Error updating links.
9696
updateLinksException,
9797

98+
/// Interrupted by client timeout.
99+
clientTimeout,
100+
101+
/// Synchronization is not active.
102+
///
103+
/// Sync was disabled during or before the attempt.
104+
syncIsNotActive,
105+
98106
/// Unknown error.
99107
unknown,
100108
}

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: in_sync_interface
22
description: An interface for synchronization functional. Used by in_sync.
3-
version: 1.11.0
3+
version: 1.12.0
44
homepage: https://github.com/innim/
55
repository: https://github.com/Innim/in_sync_interface
66
issue_tracker: https://github.com/Innim/in_sync_interface/issues

0 commit comments

Comments
 (0)