GCC Code Coverage Report
Directory: . Exec Total Coverage
File: src/smt/logic_exception.h Lines: 7 7 100.0 %
Date: 2021-05-22 Branches: 0 0 0.0 %

Line Exec Source
1
/******************************************************************************
2
 * Top contributors (to current version):
3
 *   Morgan Deters, Mathias Preiner, Aina Niemetz
4
 *
5
 * This file is part of the cvc5 project.
6
 *
7
 * Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
8
 * in the top-level source directory and their institutional affiliations.
9
 * All rights reserved.  See the file COPYING in the top-level source
10
 * directory for licensing information.
11
 * ****************************************************************************
12
 *
13
 * An exception that is thrown when a feature is used outside
14
 * the logic that cvc5 is currently using (for example, a quantifier
15
 * is used while running in a quantifier-free logic).
16
 */
17
18
#include "cvc5_public.h"
19
20
#ifndef CVC5__SMT__LOGIC_EXCEPTION_H
21
#define CVC5__SMT__LOGIC_EXCEPTION_H
22
23
#include "base/exception.h"
24
25
namespace cvc5 {
26
27
33
class LogicException : public cvc5::Exception
28
{
29
 public:
30
  LogicException() :
31
    Exception("Feature used while operating in "
32
              "incorrect state") {
33
  }
34
35
29
  LogicException(const std::string& msg) :
36
29
    Exception(msg) {
37
29
  }
38
39
4
  LogicException(const char* msg) :
40
4
    Exception(msg) {
41
4
  }
42
}; /* class LogicException */
43
44
}  // namespace cvc5
45
46
#endif /* CVC5__SMT__LOGIC_EXCEPTION_H */