ANTLRException Class Reference

#include <ANTLRException.hpp>

Inheritance diagram for ANTLRException:

Inheritance graph
[legend]

Public Member Functions

 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

Private Member Functions

 ANTLR_USE_NAMESPACE (std) string text

Detailed Description

Definition at line 18 of file ANTLRException.hpp.


Constructor & Destructor Documentation

ANTLRException::ANTLRException (  )  [inline]

Create ANTLR base exception without error message.

Definition at line 22 of file ANTLRException.hpp.

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

Create ANTLR base exception with error message.

Definition at line 26 of file ANTLRException.hpp.

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

Definition at line 30 of file ANTLRException.hpp.


Member Function Documentation

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

Definition at line 38 of file ANTLRException.hpp.

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

Definition at line 48 of file ANTLRException.hpp.

ANTLRException::ANTLR_USE_NAMESPACE ( std   )  [private]


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

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