OpenMD  2.5
Molecular Dynamics in the Open
antlr::TokenStreamRecognitionException Class Reference

#include <TokenStreamRecognitionException.hpp>

Inheritance diagram for antlr::TokenStreamRecognitionException:
antlr::TokenStreamException antlr::ANTLRException

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 ()
- Public Member Functions inherited from antlr::TokenStreamException
 TokenStreamException ()
 TokenStreamException (const std ::string &s)
virtual ~TokenStreamException () throw ()
- Public Member Functions inherited from antlr::ANTLRException
 ANTLRException ()
 Create ANTLR base exception without error message. More...
 ANTLRException (const std ::string &s)
 Create ANTLR base exception with error message. More...
virtual ~ANTLRException () throw ()
virtual std ::string getMessage () const

Private Attributes

RecognitionException recog

Detailed Description

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

See also

Definition at line 22 of file TokenStreamRecognitionException.hpp.

Constructor & Destructor Documentation

◆ TokenStreamRecognitionException()

antlr::TokenStreamRecognitionException::TokenStreamRecognitionException ( RecognitionException re)

Definition at line 24 of file TokenStreamRecognitionException.hpp.

◆ ~TokenStreamRecognitionException()

virtual antlr::TokenStreamRecognitionException::~TokenStreamRecognitionException ( )
throw (

Definition at line 29 of file TokenStreamRecognitionException.hpp.

Member Function Documentation

◆ getColumn()

virtual int antlr::TokenStreamRecognitionException::getColumn ( ) const
throw (

◆ getFilename()

virtual std ::string antlr::TokenStreamRecognitionException::getFilename ( ) const
throw (

◆ getLine()

virtual int antlr::TokenStreamRecognitionException::getLine ( ) const
throw (

◆ toString()

virtual std ::string antlr::TokenStreamRecognitionException::toString ( ) const

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

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

Reimplemented from antlr::ANTLRException.

Definition at line 32 of file TokenStreamRecognitionException.hpp.

References antlr::RecognitionException::getFileLineColumnString(), antlr::ANTLRException::getMessage(), and recog.

Member Data Documentation

◆ recog

RecognitionException antlr::TokenStreamRecognitionException::recog

Definition at line 50 of file TokenStreamRecognitionException.hpp.

Referenced by getColumn(), getFilename(), getLine(), and toString().

The documentation for this class was generated from the following file: