ByteToMessageDecoderError
public enum ByteToMessageDecoderError : Error
Common errors thrown by ByteToMessageDecoder
s.
-
More data has been received by a
ByteToMessageHandler
despite the fact that an error has previously been emitted. The associatedError
is the error previously emitted and theByteBuffer
is the extra data that has been received. The common cause for this error to be emitted is the user not having torn down theChannel
after previously anError
has been sent through the pipeline usingfireErrorCaught
.Declaration
Swift
case dataReceivedInErrorState(Error, ByteBuffer)
-
This error can be thrown by
ByteToMessageDecoder
s if there was unexpectedly some left-over data when theByteToMessageDecoder
was removed from the pipeline or theChannel
was closed.Declaration
Swift
case leftoverDataWhenDone(ByteBuffer)
-
This error can be thrown by
See moreByteToMessageDecoder
s if the incoming payload is larger than the max specified.Declaration
Swift
public struct PayloadTooLargeError : Error