AuthenticationFailed class final
A disconnection caused by the connection failing to authenticate.
This source indicates that the socket opened but the credentials could not be loaded or sent, so the connection was never usable. A server rejecting credentials it did receive is reported as an error event instead.
- Inheritance
-
- Object
- DisconnectionSource
- AuthenticationFailed
- Available extensions
Constructors
- AuthenticationFailed({StreamException? error, StackTrace? stackTrace})
-
Creates an AuthenticationFailed disconnection source.
const
Properties
- cause → StreamException?
-
Available on DisconnectionSource, provided by the DisconnectionSourceReads extension
What closed the connection, ornullwhen this source carries no cause.no setter - closeReason → String
-
Available on DisconnectionSource, provided by the DisconnectionSourceReads extension
Why the connection closed, in a form fit for a log.no setter - error → StreamException?
-
The error that prevented the connection from authenticating.
final
- exception → StreamException
-
Available on DisconnectionSource, provided by the DisconnectionSourceReads extension
The exception this disconnection is reported as.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- isReconnectable → bool
-
Available on DisconnectionSource, provided by the DisconnectionSourceReads extension
Whether a connection closed for this reason is worth opening again.no setter -
props
→ List<
Object?> -
The list of properties that will be used to determine whether
two instances are equal.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
Where error was raised.
final
- stackTrace → StackTrace?
-
Available on DisconnectionSource, provided by the DisconnectionSourceReads extension
The stack trace of the failure that closed the connection, ornullwhen it closed without one.no setter - stringify → bool?
-
If set to
true, thetoStringmethod will be overridden to output this instance'sprops.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.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited