rocksdb/utilities/redis/redis_list_exception.h
Andrew Gallagher 897fe6a4a3 rocksdb: put #pragma once before #ifdef
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
2018-10-04 17:10:21 -07:00

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