summaryrefslogtreecommitdiff
path: root/src/include/parser_exception.h
blob: 8bad801f47d209ca7b21cb8393be8ff32f3fbd46 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*********************                                           -*- C++ -*-  */
/** exception.h
 ** This file is part of the CVC4 prototype.
 **
 ** Exception class.
 **
 ** The Analysis of Computer Systems Group (ACSys)
 ** Courant Institute of Mathematical Sciences
 ** New York University
 **/

#ifndef __CVC4_PARSER_EXCEPTION_H
#define __CVC4_PARSER_EXCEPTION_H

#include "exception.h"
#include <string>
#include <iostream>

namespace CVC4 {

  class ParserException: public Exception {
  public:
    // Constructors
    ParserException() { }
    ParserException(const std::string& msg): Exception(msg) { }
    ParserException(const char* msg): Exception(msg) { }
    // Destructor
    virtual ~ParserException() { }
    virtual std::string toString() const {
      return "Parse Error: " + d_msg;
    }
  }; // end of class ParserException

}/* CVC4 namespace */

#endif /* __CVC4_PARSER_EXCEPTION_H */
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback