encoding-0.8.5: A library for various character encodings

Safe HaskellSafe
LanguageHaskell2010

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 # 
Instance details

Defined in Data.Encoding.Exception

Ord EncodingException Source # 
Instance details

Defined in Data.Encoding.Exception

Read EncodingException Source # 
Instance details

Defined in Data.Encoding.Exception

Show EncodingException Source # 
Instance details

Defined in Data.Encoding.Exception

Exception EncodingException Source # 
Instance details

Defined in Data.Encoding.Exception

Throws EncodingException PutM Source # 
Instance details

Defined in Data.Encoding.ByteSink

Throws EncodingException StrictSinkExplicit Source # 
Instance details

Defined in Data.Encoding.ByteSink

Throws EncodingException StrictSinkE Source # 
Instance details

Defined in Data.Encoding.ByteSink

Throws EncodingException StrictSink Source # 
Instance details

Defined in Data.Encoding.ByteSink

Throws EncodingException PutME Source # 
Instance details

Defined in Data.Encoding.ByteSink

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 # 
Instance details

Defined in Data.Encoding.Exception

Ord DecodingException Source # 
Instance details

Defined in Data.Encoding.Exception

Read DecodingException Source # 
Instance details

Defined in Data.Encoding.Exception

Show DecodingException Source # 
Instance details

Defined in Data.Encoding.Exception

Exception DecodingException Source # 
Instance details

Defined in Data.Encoding.Exception

Throws DecodingException Get Source # 
Instance details

Defined in Data.Encoding.ByteSource

ByteSource (StateT [Char] (Either DecodingException)) Source # 
Instance details

Defined in Data.Encoding.ByteSource

ByteSource (StateT ByteString (Either DecodingException)) Source # 
Instance details

Defined in Data.Encoding.ByteSource