YugabyteDB (2.13.1.0-b60, 21121d69985fbf76aa6958d8f04a9bfa936293b5)

Coverage Report

Created: 2022-03-22 16:43

/Users/deen/code/yugabyte-db/src/yb/rocksdb/utilities/redis/redis_list_exception.h
Line
Count
Source (jump to first uncovered line)
1
/**
2
 * A simple structure for exceptions in RedisLists.
3
 *
4
 * @author Deon Nicholas (dnicholas@fb.com)
5
 * Copyright 2013 Facebook
6
 *
7
 * The following only applies to changes made to this file as part of YugaByte development.
8
 *
9
 * Portions Copyright (c) YugaByte, Inc.
10
 *
11
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
12
 * in compliance with the License.  You may obtain a copy of the License at
13
 *
14
 * http://www.apache.org/licenses/LICENSE-2.0
15
 *
16
 * Unless required by applicable law or agreed to in writing, software distributed under the License
17
 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
18
 * or implied.  See the License for the specific language governing permissions and limitations
19
 * under the License.
20
 *
21
 */
22
23
#ifndef ROCKSDB_LITE
24
#pragma once
25
#include <exception>
26
27
namespace rocksdb {
28
29
class RedisListException: public std::exception {
30
 public:
31
0
  const char* what() const throw() override {
32
0
    return "Invalid operation or corrupt data in Redis List.";
33
0
  }
34
};
35
36
} // namespace rocksdb
37
#endif