kotlinx.serialization
kotlinx.serialization copied to clipboard
CBOR: Improve exception messages for unexpected tags during decoding
If a decoded byte sequence contains unexpected tag, a CborDecodingException with a message like Expected start of array, but found 40 will be thrown. Such messages could be improved to provide human readable tag names in addition to their numeric values, as well as some suggestions on how to avoid an issue.
Inspired by #3012