2013-06-11 18:19:49 +00:00
|
|
|
/**
|
|
|
|
* A simple structure for exceptions in RedisLists.
|
|
|
|
*
|
|
|
|
* @author Deon Nicholas (dnicholas@fb.com)
|
|
|
|
* Copyright 2013 Facebook
|
|
|
|
*/
|
|
|
|
|
2014-04-15 20:39:26 +00:00
|
|
|
#ifndef ROCKSDB_LITE
|
2013-10-05 05:32:05 +00:00
|
|
|
#pragma once
|
2013-06-11 18:19:49 +00:00
|
|
|
#include <exception>
|
|
|
|
|
2013-10-04 04:49:15 +00:00
|
|
|
namespace rocksdb {
|
2013-06-11 18:19:49 +00:00
|
|
|
|
|
|
|
class RedisListException: public std::exception {
|
|
|
|
public:
|
|
|
|
const char* what() const throw() {
|
|
|
|
return "Invalid operation or corrupt data in Redis List.";
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2013-10-04 04:49:15 +00:00
|
|
|
} // namespace rocksdb
|
2014-04-15 20:39:26 +00:00
|
|
|
#endif
|