Union
SocketError
union struct SocketError
Module: System.Networking.Sockets
Assembly: System.Networking.dll
Source file: SocketError.rvn
Inheritance: Object → ValueType → SocketError
A recoverable socket validation, admission or transport failure.
Remarks
Construct and match named cases using normal union syntax. The default has no active case and HasValue is false; ToString returns Empty. Per-case Is* and Get* helpers have been removed. Rebuild matching library and applications. Native error numbers and readiness states are private. Only common categories are mapped; other failures use IoFailure. This is distinct from a runtime Fault. Use named case patterns. The default union is inactive: HasValue is false, Value is null and ToString returns Empty.
Cases
14 cases
case Closed
The connection has been closed or does not belong to this invocation.
case Busy
Another operation in the same direction is pending on the connection. One send and one receive may coexist.
case InvalidRange
The port or buffer range is invalid.
case LimitExceeded
The invocation socket, operation or receive-buffer budget is exhausted.
case Cancelled
A native cancellation error category. Cancellation requested through a token is acknowledged as Task cancellation rather than this Result error case.
case InvalidAddress
The address is not a supported numeric IPv4 address.
case ConnectionRefused
The remote endpoint refused the connection.
case ConnectionReset
The transport reported a reset or broken connection.
case AccessDenied
The host denied the socket operation.
case TimedOut
The native transport reported a timeout or a pending connection/transfer exceeded its provisional five-second deadline.
case IoFailure
An otherwise unclassified socket failure occurred.
case InvalidOperation
The operation requires a different socket role: Accept requires a listener; Send and Receive require a connected socket.
case AddressInUse
The requested local bind address and port are already in use.
case UnsupportedAddressFamily
The address family has no transport implementation in this backend.
Properties
2 items
HasValue: bool
Reports whether the union contains an active case.
Value: object?
Projects the active case as an Object for compiler support.
Methods
4 items
Equals(other: object?) -> bool
Tests reference identity by default; an ordinary class may override equality.
Inherited from Object.Equals
GetHashCode() -> int
Returns a stable identity hash by default; an ordinary class may override it consistently with equality.
Inherited from Object.GetHashCode
GetType() -> TypeInfo
Returns metadata for the concrete runtime type of this instance.
Inherited from Object.GetType
ToString() -> string
Returns the active case name, or Empty for an inactive default.
Overrides Object.ToString