ConnectionFailure class

Represents a connection failure that can trigger a reconnect.

Use when an established connection is interrupted. Pass the error that caused the connection to fail and a bool that indicates whether to attempt reconnection.

This should only be used when the data source is already connected, not during the initial connection in CustomDynamicEntityDataProvider.onConnect.

Inheritance

Constructors

ConnectionFailure(Exception cause, bool reconnect)

Properties

cause Exception
The exception that caused the connection to fail.
final
hashCode int
The hash code for this object.
no setterinherited
reconnect bool
True to allow reconnection after failure, false to prevent reconnection.
final
runtimeType Type
A representation of the runtime type of the object.
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.
inherited

Operators

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