ChannelError
An error that can occur on Channel
operations.
enum ChannelError
An error that can occur on Channel
operations.
enum ChannelError
import NIOCore
The core abstractions that make up SwiftNIO.
case connectPending
Tried to connect on a Channel
that is already connecting.
case connectTimeout(TimeAmount)
Connect operation timed out
case operationUnsupported
Unsupported operation triggered on a Channel
. For example connect
on a ServerSocketChannel
.
case ioOnClosedChannel
An I/O operation (e.g. read/write/flush) called on a channel that is already closed.
case alreadyClosed
Close was called on a channel that is already closed.
case outputClosed
Output-side of the channel is closed.
case inputClosed
Input-side of the channel is closed.
case eof
A read operation reached end-of-file. This usually means the remote peer closed the socket but it’s still open locally.
case writeMessageTooLarge
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.
case writeHostUnreachable
A DatagramChannel
write
was made with an address that was not reachable and so could not be delivered.
case unknownLocalAddress
The local address of the Channel
could not be determined.
case badMulticastGroupAddressFamily
The address family of the multicast group was not valid for this Channel
.
case badInterfaceAddressFamily
The address family of the provided multicast group join is not valid for this Channel
.
case illegalMulticastAddress(SocketAddress)
An attempt was made to join a multicast group that does not correspond to a multicast address.
case inappropriateOperationForState
An operation that was inappropriate given the current Channel
state was attempted.
case unremovableHandler
An attempt was made to remove a ChannelHandler that is not removable.
case multicastNotSupported(NIONetworkInterface)
Multicast is not supported on Interface
enum ByteToMessageDecoderError
Common errors thrown by ByteToMessageDecoder
s.
enum ChannelPipelineError
Error
that is used by the ChannelPipeline
to inform the user of an error.
enum DatagramChannelError
enum EventLoopError
Different Error
s that are specific to EventLoop
operations / implementations.
struct IOError
An Error
for an IO operation.
struct NIOAsyncWriterError
Errors thrown by the NIOAsyncWriter
.
struct NIOAttemptedToRemoveHandlerMultipleTimesError
The removal of a ChannelHandler
using ChannelPipeline.removeHandler
has been attempted more than once.
struct NIOMulticastNotImplementedError
Multicast has not been properly implemented on this channel.
struct NIOMulticastNotSupportedError
Multicast is not supported on this interface.
struct NIOTooManyBytesError
An error that is thrown when the number of bytes in an AsyncSequence exceeds the limit.
enum SocketAddressError
Special Error
that may be thrown if we fail to create a SocketAddress
.
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Equatable
A type that can be compared for value equality.
protocol Error : Sendable
A type representing an error value that can be thrown.
protocol Escapable
protocol Sendable
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
import MongoKitten
var localizedDescription: String { get }
Retrieve the localized description for this error.