ANTLR Support Libraries 2.7.1+
Loading...
Searching...
No Matches
NoViableAltForCharException Class Reference

#include <NoViableAltForCharException.hpp>

Inheritance diagram for NoViableAltForCharException:
Collaboration diagram for NoViableAltForCharException:

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)
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.
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)
virtual std::string getFileLineColumnString () const
 See what file/line/column info is present and return it as a string.

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: