encoding-0.8.2: A library for various character encodings

Safe HaskellSafe
LanguageHaskell98

Data.Encoding.Exception

Synopsis

Documentation

data EncodingException Source #

This exception type is thrown whenever something went wrong during the encoding-process.

Constructors

HasNoRepresentation Char

Thrown if a specific character is not representable in an encoding.

Instances

Eq EncodingException Source # 
Ord EncodingException Source # 
Read EncodingException Source # 
Show EncodingException Source # 
Exception EncodingException Source # 
Throws EncodingException StrictSinkExplicit Source # 
Throws EncodingException StrictSinkE Source # 
Throws EncodingException StrictSink Source # 
Throws EncodingException PutME Source # 

data DecodingException Source #

This exception type is thrown whenever something went wrong during the decoding-process.

Constructors

IllegalCharacter Word8

The sequence contained an illegal byte that couldn't be decoded.

UnexpectedEnd

more bytes were needed to allow a successfull decoding.

OutOfRange

the decoded value was out of the unicode range

IllegalRepresentation [Word8]

The character sequence encodes a character, but is illegal.

Instances

Eq DecodingException Source # 
Ord DecodingException Source # 
Read DecodingException Source # 
Show DecodingException Source # 
Exception DecodingException Source # 
ByteSource (StateT [Char] (Either DecodingException)) Source # 
ByteSource (StateT ByteString (Either DecodingException)) Source #