memcache-0.1.0.1: A memcached client library.

Safe HaskellSafe
LanguageHaskell2010

Database.Memcache.Errors

Description

Memcached related errors and exception handling.

Synopsis

Documentation

data MemcacheError Source

Exceptions that may be thrown by Memcache. These are expected error codes returned by a memcached server.

statusToError :: Status -> MemcacheError Source

Convert a status to an error. Note, not all status's are errors and so this is a partial function!

throwStatus :: Status -> IO a Source

Convert a status to an exception. Note, not all status's are errors and so this is not a complete function!

throwIncorrectRes :: Response -> String -> IO a Source

Throw an IncorrectResponse exception for a wrong received response.

data ClientError Source

Errors that occur between the client and server in communicating. These are unexpected exceptions, such as network failures or garbage data.

Constructors

NotEnoughBytes