Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

RecognitionException Class Reference

#include <RecognitionException.hpp>

Inheritance diagram for RecognitionException:

ANTLRException MismatchedCharException MismatchedTokenException NoViableAltException NoViableAltForCharException SemanticException List of all members.

Public Methods

 RecognitionException ()
 RecognitionException (const ANTLR_USE_NAMESPACE(std) string &s)
 RecognitionException (const ANTLR_USE_NAMESPACE(std) string &s, const ANTLR_USE_NAMESPACE(std) string &fileName_, int line_, int column_)
virtual ~RecognitionException () throw ()
virtual ANTLR_USE_NAMESPACE (std) string getFilename() const
 Return file where mishap occurred.

virtual int getLine () const
virtual int getColumn () const
virtual ANTLR_USE_NAMESPACE (std) string toString() const
 Return complete error message with line/column number info (if present).

virtual ANTLR_USE_NAMESPACE (std) string getFileLineColumnString() const
 See what file/line/column info is present and return it as a string.


Protected Methods

 ANTLR_USE_NAMESPACE (std) string fileName

Protected Attributes

int line
int column

Constructor & Destructor Documentation

RecognitionException::RecognitionException  
 

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

RecognitionException::RecognitionException const ANTLR_USE_NAMESPACE(std) string &    s,
const ANTLR_USE_NAMESPACE(std) string &    fileName_,
int    line_,
int    column_
 

virtual RecognitionException::~RecognitionException   throw () [inline, virtual]
 


Member Function Documentation

RecognitionException::ANTLR_USE_NAMESPACE std    [protected]
 

Reimplemented from ANTLRException.

Reimplemented in MismatchedTokenException.

virtual RecognitionException::ANTLR_USE_NAMESPACE std    const [virtual]
 

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

Reimplemented from ANTLRException.

Reimplemented in MismatchedCharException, MismatchedTokenException, NoViableAltException, and NoViableAltForCharException.

virtual RecognitionException::ANTLR_USE_NAMESPACE std    const [virtual]
 

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

Reimplemented from ANTLRException.

Reimplemented in MismatchedCharException, MismatchedTokenException, NoViableAltException, and NoViableAltForCharException.

virtual RecognitionException::ANTLR_USE_NAMESPACE std    const [inline, virtual]
 

Return file where mishap occurred.

Reimplemented from ANTLRException.

Reimplemented in MismatchedCharException, MismatchedTokenException, NoViableAltException, and NoViableAltForCharException.

virtual int RecognitionException::getColumn   const [inline, virtual]
 

Returns:
the column number that this exception happened on.

virtual int RecognitionException::getLine   const [inline, virtual]
 

Returns:
the line number that this exception happened on.


Member Data Documentation

int RecognitionException::column [protected]
 

int RecognitionException::line [protected]
 


The documentation for this class was generated from the following files:
Generated on Wed Nov 3 12:59:53 2004 for Lemur Toolkit by doxygen1.2.18