897fe6a4a3
Summary: Work around upstream bug with modules: https://bugs.llvm.org/show_bug.cgi?id=39184. Reviewed By: yiwu-arbug Differential Revision: D10209569 fbshipit-source-id: 696853a02a3869e9c33d0e61168ad4b0436fa3c0
23 lines
418 B
C++
23 lines
418 B
C++
/**
|
|
* A simple structure for exceptions in RedisLists.
|
|
*
|
|
* @author Deon Nicholas (dnicholas@fb.com)
|
|
* Copyright 2013 Facebook
|
|
*/
|
|
|
|
#pragma once
|
|
#ifndef ROCKSDB_LITE
|
|
#include <exception>
|
|
|
|
namespace rocksdb {
|
|
|
|
class RedisListException: public std::exception {
|
|
public:
|
|
const char* what() const throw() override {
|
|
return "Invalid operation or corrupt data in Redis List.";
|
|
}
|
|
};
|
|
|
|
} // namespace rocksdb
|
|
#endif
|