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

#include <RecognitionException.hpp>

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

Public Member Functions

 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

std ::string fileName
 
int line
 
int column
 

Constructor & Destructor Documentation

◆ RecognitionException() [1/3]

RecognitionException::RecognitionException ( )

◆ RecognitionException() [2/3]

RecognitionException::RecognitionException ( const std ::string &  s)

◆ RecognitionException() [3/3]

RecognitionException::RecognitionException ( const std ::string &  s,
const std ::string &  fileName,
int  line,
int  column 
)

◆ ~RecognitionException()

virtual RecognitionException::~RecognitionException ( )
throw (
)
inlinevirtual

Member Function Documentation

◆ getColumn()

virtual int RecognitionException::getColumn ( ) const
throw (
)
inlinevirtual
Returns
the column number that this exception happened on.

◆ getFileLineColumnString()

std::string RecognitionException::getFileLineColumnString ( ) const
virtual

See what file/line/column info is present and return it as a string.

◆ getFilename()

virtual std ::string RecognitionException::getFilename ( ) const
throw (
)
inlinevirtual

Return file where mishap occurred.

◆ getLine()

virtual int RecognitionException::getLine ( ) const
throw (
)
inlinevirtual
Returns
the line number that this exception happened on.

◆ toString()

std::string RecognitionException::toString ( ) const
virtual

Return complete error message with line/column number info (if present)

Member Data Documentation

◆ column

int RecognitionException::column
protected

◆ fileName

std ::string RecognitionException::fileName
protected

◆ line

int RecognitionException::line
protected

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