encoding-0.5.2: A library for various character encodingsSource codeContentsIndex
Data.Encoding.Exception
Synopsis
data EncodingException = HasNoRepresentation Char
data DecodingException
= IllegalCharacter Word8
| UnexpectedEnd
| OutOfRange
| IllegalRepresentation [Word8]
Documentation
data EncodingException Source
This exception type is thrown whenever something went wrong during the encoding-process.
Constructors
HasNoRepresentation CharThrown if a specific character is not representable in an encoding.
show/hide Instances
data DecodingException Source
This exception type is thrown whenever something went wrong during the decoding-process.
Constructors
IllegalCharacter Word8The sequence contained an illegal byte that couldn't be decoded.
UnexpectedEndmore bytes were needed to allow a successfull decoding.
OutOfRangethe decoded value was out of the unicode range
IllegalRepresentation [Word8]The character sequence encodes a character, but is illegal.
show/hide Instances
Produced by Haddock version 2.6.0