SyncError class Sync

Thrown when an error occurs during synchronization This error or its subclasses will be returned to users through FlexibleSyncConfiguration.syncErrorHandler and the exact reason must be found in the message.

Inheritance
Implementers

Constructors

SyncError(String message, SyncErrorCategory category, int codeValue, {String? detailedMessage})

Properties

category SyncErrorCategory
The category of the sync error
getter/setter pair
code SyncErrorCode
The code that describes this error.
final
codeValue int
The numeric code value indicating the type of the sync error.
no setter
detailedMessage String?
Detailed error message. In case of server error, it contains the link to the server log.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
innerError Object?
final
message String?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
The stack trace at the point where this error was first thrown.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

create(String message, SyncErrorCategory category, int code, {bool isFatal = false}) SyncError
Creates a specific type of SyncError instance based on the category and the code supplied.