The error kinds and limits shared by the streaming codecs ofcodecs.mbt. A codec of any kind, abyte-stream decoder or an image decoder, raises CodecError with one ofthese kinds through its kind's contract, so that callers handle failures thesame way whatever they decode.
This module only defines types. Byte-stream codecs implementgaato/codec_bytes; see therepository's CONTRACT.md for the rules they keep.
Why a codec stopped with an error. The same kinds serve every kind ofcodec (byte streams, images, audio), so that callers handle a failure thesame way whatever they were decoding. New kinds may be added.
A limit a stream would exceed: what it is about, how much the stream needswhen that is known, and how much is allowed. Amounts are in theresource's unit (bytes for memory and output).