Raised by some functions to signal that some code point is not compatible with a specified encoding.
Raised by functions in the Utf8 and Utf16 modules to report strings which do not comply to the encoding.
Utf8
Utf16