Safe Haskell | Safe-Inferred |
---|
Memcache related errors and exception handling.
- data MemcacheError
- statusToError :: Status -> MemcacheError
- throwStatus :: Response -> IO a
- throwIncorrectRes :: Response -> String -> IO a
Documentation
data MemcacheError Source
Exceptions that may be thrown by Memcache.
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.