Open Nicceboy opened 2 weeks ago
Actually error reporting isn't that good. Might be better to give the failed value also in the error message like in other codecs
Actually error reporting isn't that good. Might be better to give the failed value also in the error message like in other codecs
Yes, hough I think it might be good to have a unified error across all codecs for strings, so this logic can be better shared, and if codecs can provide more context they can wrap the error type.
Related to this https://github.com/librasn/rasn/issues/185, maybe it can be handled in the same time.
Fixes #260
Adds
alphabet_name
function forStaticPermittedAlphabet
trait for better error messages.