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

ANTLRException Class Reference

#include <ANTLRException.hpp>

Inheritance diagram for ANTLRException:

CharStreamException IOException RecognitionException TokenStreamException CharStreamIOException MismatchedCharException MismatchedTokenException NoViableAltException NoViableAltForCharException SemanticException TokenStreamIOException TokenStreamRecognitionException TokenStreamRetryException List of all members.

Public Methods

 ANTLRException ()
 Create ANTLR base exception without error message.

 ANTLRException (const ANTLR_USE_NAMESPACE(std) string &s)
 Create ANTLR base exception with error message.

virtual ~ANTLRException () throw ()
virtual ANTLR_USE_NAMESPACE (std) string toString() const
virtual ANTLR_USE_NAMESPACE (std) string getMessage() const

Constructor & Destructor Documentation

ANTLRException::ANTLRException   [inline]
 

Create ANTLR base exception without error message.

ANTLRException::ANTLRException const ANTLR_USE_NAMESPACE(std) string &    s [inline]
 

Create ANTLR base exception with error message.

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


Member Function Documentation

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

Return error message without additional info (if present)

Note:
when making your own exceptions classes override toString and call in toString getMessage which relays the text attribute from here.

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

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

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

Note:
for your own exceptions override this one. Call getMessage from here to get the 'clean' error message stored in the text attribute.

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


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