ANTLR Support Libraries 2.7.1+

antlr/IOException.hpp

Go to the documentation of this file.
00001 #ifndef INC_IOException_hpp__
00002 #define INC_IOException_hpp__
00003 
00004 /* ANTLR Translator Generator
00005  * Project led by Terence Parr at http://www.jGuru.com
00006  * Software rights: http://www.antlr.org/license.html
00007  *
00008  * $Id:$
00009  */
00010 
00011 #include <antlr/config.hpp>
00012 #include <antlr/ANTLRException.hpp>
00013 #include <exception>
00014 
00015 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
00016 namespace antlr {
00017 #endif
00018 
00023 class ANTLR_API IOException : public ANTLRException
00024 {
00025 public:
00026    ANTLR_USE_NAMESPACE(std)exception io;
00027 
00028    IOException( ANTLR_USE_NAMESPACE(std)exception& e )
00029       : ANTLRException(e.what())
00030    {
00031    }
00032    IOException( const ANTLR_USE_NAMESPACE(std)string& mesg )
00033       : ANTLRException(mesg)
00034    {
00035    }
00036    virtual ~IOException() throw()
00037    {
00038    }
00039 };
00040 
00041 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
00042 }
00043 #endif
00044 
00045 #endif //INC_IOException_hpp__
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines