00001 #ifndef INC_TokenStreamIOException_hpp__ 00002 #define INC_TokenStreamIOException_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: TokenStreamIOException.hpp,v 1.1 2004/10/08 16:27:34 dfisher Exp $ 00009 */ 00010 00011 #include <antlr/config.hpp> 00012 #include <antlr/TokenStreamException.hpp> 00013 00014 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00015 namespace antlr { 00016 #endif 00017 00018 class TokenStreamIOException : public TokenStreamException { 00019 public: 00020 TokenStreamIOException() 00021 : TokenStreamException() 00022 { 00023 } 00024 TokenStreamIOException(const ANTLR_USE_NAMESPACE(std)exception& e) 00025 : TokenStreamException(e.what()) 00026 , io(e) 00027 { 00028 } 00029 ~TokenStreamIOException() throw() 00030 { 00031 } 00032 private: 00033 ANTLR_USE_NAMESPACE(std)exception io; 00034 }; 00035 00036 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE 00037 } 00038 #endif 00039 00040 #endif //INC_TokenStreamIOException_hpp__