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

Line Exec Source
1
/*********************                                                        */
2
/*! \file logic_exception.h
3
 ** \verbatim
4
 ** Top contributors (to current version):
5
 **   Morgan Deters, Mathias Preiner
6
 ** This file is part of the CVC4 project.
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.\endverbatim
11
 **
12
 ** \brief An exception that is thrown when a feature is used outside
13
 ** the logic that CVC4 is currently using
14
 **
15
 ** \brief An exception that is thrown when a feature is used outside
16
 ** the logic that CVC4 is currently using (for example, a quantifier
17
 ** is used while running in a quantifier-free logic).
18
 **/
19
20
#include "cvc4_public.h"
21
22
#ifndef CVC4__SMT__LOGIC_EXCEPTION_H
23
#define CVC4__SMT__LOGIC_EXCEPTION_H
24
25
#include "base/exception.h"
26
27
namespace CVC4 {
28
29
38
class LogicException : public CVC4::Exception
30
{
31
 public:
32
  LogicException() :
33
    Exception("Feature used while operating in "
34
              "incorrect state") {
35
  }
36
37
34
  LogicException(const std::string& msg) :
38
34
    Exception(msg) {
39
34
  }
40
41
4
  LogicException(const char* msg) :
42
4
    Exception(msg) {
43
4
  }
44
}; /* class LogicException */
45
46
}/* CVC4 namespace */
47
48
#endif /* CVC4__SMT__LOGIC_EXCEPTION_H */