Documentation Language: Swift

Method

errorCaught(context:error:)

An error was encountered earlier in the inbound ChannelPipeline.

func errorCaught(context: ChannelHandlerContext, error: Error)

Parameters

context

The ChannelHandlerContext which this ChannelHandler belongs to.

error

The Error that was encountered.

Discussion

This should call context.fireErrorCaught to forward the operation to the next _ChannelInboundHandler in the ChannelPipeline if you want to allow the next handler to also handle the error.