2013-06-11 20:19:49 +02:00
|
|
|
/**
|
|
|
|
* 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>
|
|
|
|
|
2013-10-04 06:49:15 +02:00
|
|
|
namespace rocksdb {
|
2013-06-11 20:19:49 +02:00
|
|
|
|
|
|
|
class RedisListException: public std::exception {
|
|
|
|
public:
|
|
|
|
const char* what() const throw() {
|
|
|
|
return "Invalid operation or corrupt data in Redis List.";
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2013-10-04 06:49:15 +02:00
|
|
|
} // namespace rocksdb
|
2013-06-11 20:19:49 +02:00
|
|
|
|
|
|
|
#endif // LEVELDB_REDIS_LIST_EXCEPTION_H
|