a143ef9b38
Summary: Change namespace from leveldb to rocksdb. This allows a single application to link in open-source leveldb code as well as rocksdb code into the same process. Test Plan: compile rocksdb Reviewers: emayanke Reviewed By: emayanke CC: leveldb Differential Revision: https://reviews.facebook.net/D13287
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 rocksdb {
|
|
|
|
class RedisListException: public std::exception {
|
|
public:
|
|
const char* what() const throw() {
|
|
return "Invalid operation or corrupt data in Redis List.";
|
|
}
|
|
};
|
|
|
|
} // namespace rocksdb
|
|
|
|
#endif // LEVELDB_REDIS_LIST_EXCEPTION_H
|