KDevelop API Documentation

RecognitionException Class Reference

#include <RecognitionException.hpp>

Inheritance diagram for RecognitionException:

ANTLRException MismatchedCharException MismatchedTokenException NoViableAltException NoViableAltForCharException SemanticException 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
 Return file where mishap occurred.

virtual int getLine () const
virtual int getColumn () const
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  ) 
 

Definition at line 15 of file RecognitionException.cpp.

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

Definition at line 22 of file RecognitionException.cpp.

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

Definition at line 29 of file RecognitionException.cpp.

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

Definition at line 27 of file RecognitionException.hpp.


Member Function Documentation

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

Returns:
the column number that this exception happened on.

Definition at line 46 of file RecognitionException.hpp.

std::string RecognitionException::getFileLineColumnString  )  const [virtual]
 

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

Definition at line 39 of file RecognitionException.cpp.

References ANTLR_USE_NAMESPACE.

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

Return file where mishap occurred.

Definition at line 32 of file RecognitionException.hpp.

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

Returns:
the line number that this exception happened on.

Definition at line 39 of file RecognitionException.hpp.

std::string RecognitionException::toString  )  const [virtual]
 

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

Reimplemented from ANTLRException.

Definition at line 64 of file RecognitionException.cpp.

Referenced by TreeParser::reportError(), Parser::reportError(), and CharScanner::reportError().


Member Data Documentation

int RecognitionException::column [protected]
 

Definition at line 68 of file RecognitionException.hpp.

std ::string RecognitionException::fileName [protected]
 

Definition at line 66 of file RecognitionException.hpp.

int RecognitionException::line [protected]
 

Definition at line 67 of file RecognitionException.hpp.


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:29 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003