An exception type for representing Unicode encoding errors.
Constructors
DecodeError String (Maybe Word8)Could not decode a byte sequence because it was invalid under the given encoding, or ran out of input in mid-decode.
EncodeError String (Maybe Char)Tried to encode a character that could not be represented under the given encoding, or ran out of input in mid-encode.
Instances4Eq, Show, Exception, NFData
Eq UnicodeExceptionDefined in text-2.1.3 · Data.Text.Encoding.ErrorShow UnicodeExceptionDefined in text-2.1.3 · Data.Text.Encoding.ErrorException UnicodeExceptionDefined in text-2.1.3 · Data.Text.Encoding.ErrorNFData UnicodeExceptionDefined in text-2.1.3 · Data.Text.Encoding.Error