rocksdb/utilities/redis/redis_list_exception.h
Deon Nicholas 5679107b07 Completed the implementation and test cases for Redis API.
Summary:
Completed the implementation for the Redis API for Lists.
The Redis API uses rocksdb as a backend to persistently
store maps from key->list. It supports basic operations
for appending, inserting, pushing, popping, and accessing
a list, given its key.

Test Plan:
  - Compile with: make redis_test
  - Test with: ./redis_test
  - Run all unit tests (for all rocksdb) with: make all check
  - To use an interactive REDIS client use: ./redis_test -m
  - To clean the database before use:       ./redis_test -m -d

Reviewers: haobo, dhruba, zshao

Reviewed By: haobo

CC: leveldb

Differential Revision: https://reviews.facebook.net/D10833
2013-06-11 11:19:49 -07:00

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