SyncWebSocketErrorCode enum

Web socket errors.

These errors will be reported via the error handlers of the affected sessions.

Inheritance
Annotations
  • @Deprecated("Use SyncError or its subclasses instead of using error codes.")

Constructors

SyncWebSocketErrorCode(int code)
const

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
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.