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

#include <NoViableAltForCharException.hpp>

Inheritance diagram for antlr::NoViableAltForCharException:
antlr::RecognitionException antlr::ANTLRException

Public Member Functions

 NoViableAltForCharException (int c, CharScanner *scanner)
 
 NoViableAltForCharException (int c, const std ::string &fileName_, int line_, int column_)
 
virtual ~NoViableAltForCharException () throw ()
 
std ::string getMessage () const
 Returns a clean error message (no line number/column information) More...
 
- Public Member Functions inherited from antlr::RecognitionException
 RecognitionException ()
 
 RecognitionException (const std ::string &s)
 
 RecognitionException (const std ::string &s, const std ::string &fileName, int line, int column)
 
virtual ~RecognitionException () throw ()
 
virtual std ::string getFilename () const throw ()
 Return file where mishap occurred. More...
 
virtual int getLine () const throw ()
 
virtual int getColumn () const throw ()
 
virtual std ::string toString () const
 Return complete error message with line/column number info (if present) More...
 
virtual std ::string getFileLineColumnString () const
 See what file/line/column info is present and return it as a string. More...
 
- 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 ()
 

Protected Attributes

int foundChar
 
- Protected Attributes inherited from antlr::RecognitionException
std ::string fileName
 
int line
 
int column
 

Detailed Description

Definition at line 20 of file NoViableAltForCharException.hpp.

Constructor & Destructor Documentation

◆ NoViableAltForCharException() [1/2]

antlr::NoViableAltForCharException::NoViableAltForCharException ( int  c,
CharScanner scanner 
)

Definition at line 15 of file NoViableAltForCharException.cpp.

◆ NoViableAltForCharException() [2/2]

antlr::NoViableAltForCharException::NoViableAltForCharException ( int  c,
const std ::string &  fileName_,
int  line_,
int  column_ 
)

Definition at line 23 of file NoViableAltForCharException.cpp.

◆ ~NoViableAltForCharException()

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

Definition at line 27 of file NoViableAltForCharException.hpp.

References ANTLR_USE_NAMESPACE.

Member Function Documentation

◆ getMessage()

std::string antlr::NoViableAltForCharException::getMessage ( ) const
virtual

Returns a clean error message (no line number/column information)

Reimplemented from antlr::ANTLRException.

Definition at line 32 of file NoViableAltForCharException.cpp.

References ANTLR_USE_NAMESPACE, antlr::charName(), and foundChar.

Referenced by OpenMD::SimCreator::parseFile().

Member Data Documentation

◆ foundChar

int antlr::NoViableAltForCharException::foundChar
protected

Definition at line 34 of file NoViableAltForCharException.hpp.

Referenced by getMessage().


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