Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Memcache related errors and exception handling.
- data MemcacheError
- statusToError :: Status -> MemcacheError
- throwStatus :: Status -> IO a
- throwIncorrectRes :: Response -> String -> IO a
- data ClientError = NotEnoughBytes
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.