ANTLR Support Libraries 2.7.1+
 All Classes Namespaces Files Functions Variables Typedefs Friends Defines
Public Member Functions | Protected Attributes
RecognitionException Class Reference

#include <RecognitionException.hpp>

Inheritance diagram for RecognitionException:
Inheritance graph
[legend]

List of all members.

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

std::string fileName
int line
int column

Constructor & Destructor Documentation

RecognitionException::RecognitionException ( const std::string &  s)
RecognitionException::RecognitionException ( const std::string &  s,
const std::string &  fileName,
int  line,
int  column 
)
virtual RecognitionException::~RecognitionException ( ) throw () [inline, virtual]

Member Function Documentation

virtual int RecognitionException::getColumn ( ) const throw () [inline, virtual]
Returns:
the column number that this exception happened on.
std::string RecognitionException::getFileLineColumnString ( ) const [virtual]

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

virtual std ::string RecognitionException::getFilename ( ) const throw () [inline, virtual]

Return file where mishap occurred.

virtual int RecognitionException::getLine ( ) const throw () [inline, virtual]
Returns:
the line number that this exception happened on.
std::string RecognitionException::toString ( ) const [virtual]

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


Member Data Documentation

std ::string RecognitionException::fileName [protected]
int RecognitionException::line [protected]

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