ANTLR Support Libraries 2.7.1+
Public Member Functions | Protected Attributes | List of all members
NoViableAltForCharException Class Reference

#include <NoViableAltForCharException.hpp>

Inheritance diagram for NoViableAltForCharException:
Inheritance graph
[legend]
Collaboration diagram for NoViableAltForCharException:
Collaboration graph
[legend]

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 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...
 

Protected Attributes

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

Constructor & Destructor Documentation

◆ NoViableAltForCharException() [1/2]

NoViableAltForCharException::NoViableAltForCharException ( int  c,
CharScanner scanner 
)

◆ NoViableAltForCharException() [2/2]

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

◆ ~NoViableAltForCharException()

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

Member Function Documentation

◆ getMessage()

std::string NoViableAltForCharException::getMessage ( ) const

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

Member Data Documentation

◆ foundChar

int NoViableAltForCharException::foundChar
protected

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