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 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 throw ()
 Return file where mishap occurred.
virtual int getLine () const throw ()
virtual int getColumn () const throw ()
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 Member Functions

 ANTLR_USE_NAMESPACE (std) string fileName

Protected Attributes

int line
int column

Detailed Description

Definition at line 18 of file RecognitionException.hpp.


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]

Definition at line 27 of file RecognitionException.hpp.


Member Function Documentation

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

Return file where mishap occurred.

Reimplemented from ANTLRException.

Reimplemented in MismatchedCharException, MismatchedTokenException, MismatchedTokenException, NoViableAltException, and NoViableAltForCharException.

Definition at line 32 of file RecognitionException.hpp.

virtual int RecognitionException::getLine (  )  const throw () [inline, virtual]

Returns:
the line number that this exception happened on.

Definition at line 39 of file RecognitionException.hpp.

virtual int RecognitionException::getColumn (  )  const throw () [inline, virtual]

Returns:
the column number that this exception happened on.

Definition at line 46 of file RecognitionException.hpp.

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, MismatchedTokenException, NoViableAltException, and NoViableAltForCharException.

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, MismatchedTokenException, NoViableAltException, and NoViableAltForCharException.

RecognitionException::ANTLR_USE_NAMESPACE ( std   )  [protected]

Reimplemented from ANTLRException.

Reimplemented in MismatchedTokenException.


Field Documentation

int RecognitionException::line [protected]

Definition at line 58 of file RecognitionException.hpp.

Definition at line 59 of file RecognitionException.hpp.


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

Generated on Tue Mar 31 20:19:28 2009 for ctrump by  doxygen 1.5.6