ANTLR Support Libraries 2.7.1+

antlr/SemanticException.hpp

Go to the documentation of this file.
00001 #ifndef INC_SemanticException_hpp__
00002 #define INC_SemanticException_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: //depot/code/org.antlr/release/antlr-2.7.7/lib/cpp/antlr/SemanticException.hpp#2 $
00009  */
00010 
00011 #include <antlr/config.hpp>
00012 #include <antlr/RecognitionException.hpp>
00013 
00014 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
00015 namespace antlr {
00016 #endif
00017 
00018 class ANTLR_API SemanticException : public RecognitionException {
00019 public:
00020    SemanticException(const ANTLR_USE_NAMESPACE(std)string& s)
00021    : RecognitionException(s)
00022    {
00023    }
00024    SemanticException(const ANTLR_USE_NAMESPACE(std)string& s,
00025                      const ANTLR_USE_NAMESPACE(std)string& fileName_,
00026                      int line_,int column_)
00027    : RecognitionException(s,fileName_,line_,column_)
00028    {
00029    }
00030 
00031    ~SemanticException() throw()
00032    {
00033    }
00034 };
00035 
00036 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
00037 }
00038 #endif
00039 
00040 #endif //INC_SemanticException_hpp__
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines