Merged bit-vector and uf proof branch.
[cvc5.git] / src / smt / logic_exception.h
1 /********************* */
2 /*! \file logic_exception.h
3 ** \verbatim
4 ** Original author: Morgan Deters
5 ** Major contributors: none
6 ** Minor contributors (to current version): none
7 ** This file is part of the CVC4 project.
8 ** Copyright (c) 2009-2014 New York University and The University of Iowa
9 ** See the file COPYING in the top-level source directory for licensing
10 ** 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 class CVC4_PUBLIC LogicException : public CVC4::Exception {
30 public:
31 LogicException() :
32 Exception("Feature used while operating in "
33 "incorrect state") {
34 }
35
36 LogicException(const std::string& msg) :
37 Exception(msg) {
38 }
39
40 LogicException(const char* msg) :
41 Exception(msg) {
42 }
43 };/* class LogicException */
44
45 }/* CVC4 namespace */
46
47 #endif /* __CVC4__SMT__LOGIC_EXCEPTION_H */