Method
errorCaught(context:error:)
An error was encountered earlier in the inbound ChannelPipeline.
func errorCaught(context: ChannelHandlerContext, error: Error)
Parameters
context-
The
ChannelHandlerContextwhich thisChannelHandlerbelongs to. error-
The
Errorthat 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.