antlr::TokenStreamRecognitionException Class Reference

#include <TokenStreamRecognitionException.hpp>

Inheritance diagram for antlr::TokenStreamRecognitionException:
[legend]
Collaboration diagram for antlr::TokenStreamRecognitionException:
[legend]

List of all members.

Public Member Functions

 TokenStreamRecognitionException (RecognitionException &re)
virtual ~TokenStreamRecognitionException () throw ()
virtual std::string toString () const
virtual std::string getFilename () const throw ()
virtual int getLine () const throw ()
virtual int getColumn () const throw ()

Private Attributes

RecognitionException recog

Detailed Description

Exception thrown from generated lexers when there's no default error handler specified.

See also:
TokenStream

Constructor & Destructor Documentation

antlr::TokenStreamRecognitionException::TokenStreamRecognitionException ( RecognitionException re  )  [inline]
virtual antlr::TokenStreamRecognitionException::~TokenStreamRecognitionException (  )  throw () [inline, virtual]

Member Function Documentation

virtual int antlr::TokenStreamRecognitionException::getColumn (  )  const throw () [inline, virtual]
virtual std ::string antlr::TokenStreamRecognitionException::getFilename (  )  const throw () [inline, virtual]
virtual int antlr::TokenStreamRecognitionException::getLine (  )  const throw () [inline, virtual]
virtual std ::string antlr::TokenStreamRecognitionException::toString (  )  const [inline, virtual]

Return complete error message with line/column number info (if present)

Note:
for your own exceptions override this one. Call getMessage from here to get the 'clean' error message stored in the text attribute.

Reimplemented from ANTLRException.


Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines

Generated on 16 Nov 2015 for ANTLR Support Libraries 2.7.1+ by  doxygen 1.6.1