1 #ifndef INC_IOException_hpp__
2 #define INC_IOException_hpp__
4 /* ANTLR Translator Generator
5 * Project led by Terence Parr at http://www.jGuru.com
6 * Software rights: http://www.antlr.org/license.html
11 #include <antlr/config.hpp>
12 #include <antlr/ANTLRException.hpp>
15 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
19 /** Generic IOException used inside support code. (thrown by XML I/O routs)
20 * basically this is something I'm using since a lot of compilers don't
21 * support ios_base::failure.
23 class ANTLR_API IOException : public ANTLRException
26 ANTLR_USE_NAMESPACE(std)exception io;
28 IOException( ANTLR_USE_NAMESPACE(std)exception& e )
29 : ANTLRException(e.what())
32 IOException( const ANTLR_USE_NAMESPACE(std)string& mesg )
33 : ANTLRException(mesg)
36 virtual ~IOException() _NOEXCEPT
41 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
45 #endif //INC_IOException_hpp__