OpenMD 3.1
Molecular Dynamics in the Open
Loading...
Searching...
No Matches
antlr::TokenStreamRecognitionException Class Reference

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

#include <TokenStreamRecognitionException.hpp>

+ Inheritance diagram for antlr::TokenStreamRecognitionException:

Public Member Functions

 TokenStreamRecognitionException (RecognitionException &re)
 
virtual std::string toString () const
 Return complete error message with line/column number info (if present)
 
virtual std::string getFilename () const throw ()
 
virtual int getLine () const throw ()
 
virtual int getColumn () const throw ()
 
- Public Member Functions inherited from antlr::TokenStreamException
 TokenStreamException (const std ::string &s)
 
- Public Member Functions inherited from antlr::ANTLRException
 ANTLRException ()
 Create ANTLR base exception without error message.
 
 ANTLRException (const std ::string &s)
 Create ANTLR base exception with error message.
 
virtual std::string getMessage () const
 Return error message without additional info (if present)
 

Detailed Description

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

See also
TokenStream

Definition at line 22 of file TokenStreamRecognitionException.hpp.

Constructor & Destructor Documentation

◆ TokenStreamRecognitionException()

antlr::TokenStreamRecognitionException::TokenStreamRecognitionException ( RecognitionException & re)
inline

Definition at line 24 of file TokenStreamRecognitionException.hpp.

◆ ~TokenStreamRecognitionException()

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

Definition at line 29 of file TokenStreamRecognitionException.hpp.

Member Function Documentation

◆ getColumn()

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

Definition at line 45 of file TokenStreamRecognitionException.hpp.

◆ getFilename()

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

Definition at line 37 of file TokenStreamRecognitionException.hpp.

◆ getLine()

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

Definition at line 41 of file TokenStreamRecognitionException.hpp.

◆ toString()

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

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 antlr::ANTLRException.

Definition at line 32 of file TokenStreamRecognitionException.hpp.

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


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