ANTLR Support Libraries 2.7.1+
IOException.hpp
Go to the documentation of this file.
1 #ifndef INC_IOException_hpp__
2 #define INC_IOException_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:$
9  */
10 
11 #include <antlr/config.hpp>
12 #include <antlr/ANTLRException.hpp>
13 #include <exception>
14 
15 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
16 namespace antlr {
17 #endif
18 
23 class ANTLR_API IOException : public ANTLRException
24 {
25 public:
27 
29  : ANTLRException(e.what())
30  {
31  }
32  IOException( const ANTLR_USE_NAMESPACE(std)string& mesg )
33  : ANTLRException(mesg)
34  {
35  }
36  virtual ~IOException() throw()
37  {
38  }
39 };
40 
41 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
42 }
43 #endif
44 
45 #endif //INC_IOException_hpp__
Definition: ANTLRException.hpp:15
IOException(std ::exception &e)
Definition: IOException.hpp:28
#define ANTLR_API
Definition: config.hpp:22
std ::exception io
Definition: IOException.hpp:26
virtual ~IOException()
Definition: IOException.hpp:36
Definition: IOException.hpp:23
IOException(const std ::string &mesg)
Definition: IOException.hpp:32
#define ANTLR_USE_NAMESPACE(_x_)
Definition: config.hpp:18