Instance Methodswift-nio 2.81.0NIOCore
errorCaught(context:error:)
NIOCloseOnErrorHandler.swift:23func errorCaught(context: ChannelHandlerContext, error: Error)
func errorCaught(context: ChannelHandlerContext, error: Error)
s7NIOCore22NIOCloseOnErrorHandlerC11errorCaught7context0F0yAA07ChannelE7ContextC_s0D0_ptF
What are these?DWIT
import NIOCore
The core abstractions that make up SwiftNIO.
final class NIOCloseOnErrorHandler
A ChannelInboundHandler
that closes the channel when an error is caught
final class ChannelHandlerContext
Every ChannelHandler
has – when added to a ChannelPipeline
– a corresponding ChannelHandlerContext
which is the way ChannelHandler
s can interact with other ChannelHandler
s in the pipeline.
protocol Error : Sendable
A type representing an error value that can be thrown.
init()
Initialize a NIOCloseOnErrorHandler
typealias InboundIn = NIOAny