mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-29 09:36:17 +00:00
25 lines
489 B
C
25 lines
489 B
C
|
/**
|
||
|
* A simple structure for exceptions in RedisLists.
|
||
|
*
|
||
|
* @author Deon Nicholas (dnicholas@fb.com)
|
||
|
* Copyright 2013 Facebook
|
||
|
*/
|
||
|
|
||
|
#ifndef LEVELDB_REDIS_LIST_EXCEPTION_H
|
||
|
#define LEVELDB_REDIS_LIST_EXCEPTION_H
|
||
|
|
||
|
#include <exception>
|
||
|
|
||
|
namespace leveldb {
|
||
|
|
||
|
class RedisListException: public std::exception {
|
||
|
public:
|
||
|
const char* what() const throw() {
|
||
|
return "Invalid operation or corrupt data in Redis List.";
|
||
|
}
|
||
|
};
|
||
|
|
||
|
} // namespace leveldb
|
||
|
|
||
|
#endif // LEVELDB_REDIS_LIST_EXCEPTION_H
|