kotlinx.serialization icon indicating copy to clipboard operation
kotlinx.serialization copied to clipboard

CBOR: Improve exception messages for unexpected tags during decoding

Open fzhinkin opened this issue 5 months ago • 1 comments

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.

fzhinkin avatar Jun 23 '25 23:06 fzhinkin

Inspired by #3012

fzhinkin avatar Jun 23 '25 23:06 fzhinkin