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

#include <NoViableAltException.hpp>

Inheritance diagram for NoViableAltException:
Collaboration diagram for NoViableAltException:

Public Member Functions

 NoViableAltException (RefAST t)
 NoViableAltException (RefToken t, const std ::string &fileName_)
 ~NoViableAltException () throw ()
std::string getMessage () const
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.

Public Attributes

const RefToken token
const RefAST node

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ NoViableAltException() [1/2]

NoViableAltException::NoViableAltException ( RefAST t)

◆ NoViableAltException() [2/2]

NoViableAltException::NoViableAltException ( RefToken t,
const std ::string & fileName_ )

◆ ~NoViableAltException()

NoViableAltException::~NoViableAltException ( )
throw ( )
inline

Member Function Documentation

◆ getMessage()

std::string NoViableAltException::getMessage ( ) const

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

Member Data Documentation

◆ node

const RefAST NoViableAltException::node

◆ token

const RefToken NoViableAltException::token

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