blob: 64a8f452efc96ab7ee0ed5a5d945dba998e38bd1 (
plain) (
blame)
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
37
38
39
40
41
42
43
44
45
46
|
/*****************************************************************************/
/*!
* \file parser_exception.h
* \brief An exception thrown by the parser.
*
* Author: Sergey Berezin
*
* Created: Thu Feb 6 13:23:39 2003
*
* <hr>
*
* License to use, copy, modify, sell and/or distribute this software
* and its documentation for any purpose is hereby granted without
* royalty, subject to the terms and conditions defined in the \ref
* LICENSE file provided with this distribution.
*
* <hr>
*
*/
/*****************************************************************************/
#ifndef _cvc3__parser_exception_h_
#define _cvc3__parser_exception_h_
#include "exception.h"
#include <string>
#include <iostream>
namespace CVC3 {
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
} // end of namespace CVC3
#endif
|