throwIfErrorCaught

This method will throw the error that is stored in the NIOAsyncTestingChannel if any.

AsyncTestingChannel.swift:532
iOS
13.0+
macOS
10.15+
tvOS
13.0+
watchOS
6.0+
func throwIfErrorCaught() async throws

The NIOAsyncTestingChannel will store an error if some error travels the ChannelPipeline all the way past its end.