ChannelError
public enum ChannelError : Error
extension ChannelError: Equatable
An error that can occur on Channel
operations.
-
Tried to connect on a
Channel
that is already connecting.Declaration
Swift
case connectPending
-
Connect operation timed out
Declaration
Swift
case connectTimeout(TimeAmount)
-
Unsupported operation triggered on a
Channel
. For exampleconnect
on aServerSocketChannel
.Declaration
Swift
case operationUnsupported
-
An I/O operation (e.g. read/write/flush) called on a channel that is already closed.
Declaration
Swift
case ioOnClosedChannel
-
Close was called on a channel that is already closed.
Declaration
Swift
case alreadyClosed
-
Output-side of the channel is closed.
Declaration
Swift
case outputClosed
-
Input-side of the channel is closed.
Declaration
Swift
case inputClosed
-
A read operation reached end-of-file. This usually means the remote peer closed the socket but it’s still open locally.
Declaration
Swift
case eof
-
A
DatagramChannel
write
was made with a buffer that is larger than the MTU for the connection, and so the datagram was not written. Either shorten the datagram or manually fragment, and then try again.Declaration
Swift
case writeMessageTooLarge
-
A
DatagramChannel
write
was made with an address that was not reachable and so could not be delivered.Declaration
Swift
case writeHostUnreachable
-
The local address of the
Channel
could not be determined.Declaration
Swift
case unknownLocalAddress
-
The address family of the multicast group was not valid for this
Channel
.Declaration
Swift
case badMulticastGroupAddressFamily
-
The address family of the provided multicast group join is not valid for this
Channel
.Declaration
Swift
case badInterfaceAddressFamily
-
An attempt was made to join a multicast group that does not correspond to a multicast address.
Declaration
Swift
case illegalMulticastAddress(SocketAddress)
-
Multicast is not supported on Interface
Declaration
Swift
case multicastNotSupported(NIONetworkInterface)
-
An operation that was inappropriate given the current
Channel
state was attempted.Declaration
Swift
case inappropriateOperationForState
-
An attempt was made to remove a ChannelHandler that is not removable.
Declaration
Swift
case unremovableHandler