ANTLR Support Libraries 2.7.1+
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Friends
Macros
Pages
antlr
ANTLRException.hpp
Go to the documentation of this file.
1
#ifndef INC_ANTLRException_hpp__
2
#define INC_ANTLRException_hpp__
3
4
/* ANTLR Translator Generator
5
* Project led by Terence Parr at http://www.jGuru.com
6
* Software rights: http://www.antlr.org/license.html
7
*
8
* $Id: //depot/code/org.antlr/release/antlr-2.7.7/lib/cpp/antlr/ANTLRException.hpp#2 $
9
*/
10
11
#include <
antlr/config.hpp
>
12
#include <string>
13
14
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
15
namespace
antlr {
16
#endif
17
18
class
ANTLR_API
ANTLRException
19
{
20
public
:
22
ANTLRException
() : text(
""
)
23
{
24
}
26
ANTLRException
(
const
ANTLR_USE_NAMESPACE
(std)
string
& s)
27
: text(s)
28
{
29
}
30
virtual
~
ANTLRException
() throw()
31
{
32
}
33
38
virtual
ANTLR_USE_NAMESPACE
(std)string toString()
const
39
{
40
return
text;
41
}
42
48
virtual
ANTLR_USE_NAMESPACE
(std)string getMessage()
const
49
{
50
return
text;
51
}
52
private
:
53
ANTLR_USE_NAMESPACE
(std)string text;
54
};
55
#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
56
}
57
#endif
58
59
#endif //INC_ANTLRException_hpp__
Generated by
1.8.1.1