memcache-0.0.0: A memcached client library.

Safe HaskellSafe-Inferred

Database.Memcache.Errors

Description

Memcache related errors and exception handling.

Synopsis

Documentation

statusToError :: Status -> MemcacheErrorSource

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

throwStatus :: Response -> IO aSource

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 aSource

Throw an IncorrectResponse exception for a wrong received response.