diff options
Diffstat (limited to 'poxml/antlr/antlr/CharStreamIOException.h')
-rw-r--r-- | poxml/antlr/antlr/CharStreamIOException.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/poxml/antlr/antlr/CharStreamIOException.h b/poxml/antlr/antlr/CharStreamIOException.h new file mode 100644 index 00000000..3b861065 --- /dev/null +++ b/poxml/antlr/antlr/CharStreamIOException.h @@ -0,0 +1,20 @@ +#ifndef INC_CharStreamIOException_hpp__ +#define INC_CharStreamIOException_hpp__ + +#include "antlr/config.h" +#include "antlr/CharStreamException.h" + +ANTLR_BEGIN_NAMESPACE(antlr) + +class CharStreamIOException : public CharStreamException { +public: + ANTLR_USE_NAMESPACE(std)exception io; + + CharStreamIOException(ANTLR_USE_NAMESPACE(std)exception& e) + : CharStreamException(e.what()), io(e) {} + ~CharStreamIOException() throw() {} +}; + +ANTLR_END_NAMESPACE + +#endif //INC_CharStreamIOException_hpp__ |