SyncWebSocketErrorCode enum
Web socket errors.
These errors will be reported via the error handlers of the affected sessions.
- Inheritance
- Available extensions
- Annotations
-
- @Deprecated("Use SyncError or its subclasses instead of using error codes.")
Values
- websocketResolveFailed → const SyncWebSocketErrorCode
-
Web socket resolution failed
const SyncWebSocketErrorCode(4400)
- websocketConnectionClosedClient → const SyncWebSocketErrorCode
-
Web socket connection closed by the client
const SyncWebSocketErrorCode(4401)
- websocketConnectionClosedServer → const SyncWebSocketErrorCode
-
Web socket connection closed by the server
const SyncWebSocketErrorCode(4402)
- unknown → const SyncWebSocketErrorCode
-
Unknown resolve errors
const SyncWebSocketErrorCode(9999)
Properties
- code → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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
Static Methods
-
fromInt(
int code) → SyncWebSocketErrorCode
Constants
-
values
→ const List<
SyncWebSocketErrorCode> - A constant List of the values in this enum, in order of their declaration.