2013-06-11 20:19:49 +02:00
|
|
|
/**
|
|
|
|
* A simple structure for exceptions in RedisLists.
|
|
|
|
*
|
|
|
|
* @author Deon Nicholas (dnicholas@fb.com)
|
|
|
|
* Copyright 2013 Facebook
|
|
|
|
*/
|
|
|
|
|
2014-04-15 22:39:26 +02:00
|
|
|
#ifndef ROCKSDB_LITE
|
2013-10-05 07:32:05 +02:00
|
|
|
#pragma once
|
2013-06-11 20:19:49 +02:00
|
|
|
#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:
|
2015-02-26 20:28:41 +01:00
|
|
|
const char* what() const throw() override {
|
2013-06-11 20:19:49 +02:00
|
|
|
return "Invalid operation or corrupt data in Redis List.";
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2013-10-04 06:49:15 +02:00
|
|
|
} // namespace rocksdb
|
2014-04-15 22:39:26 +02:00
|
|
|
#endif
|