Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members

HeyParserException Class Reference

List of all members.

Detailed Description

Base class for exceptions thrown by the parser.

See also:
HeyParser

Definition at line 30 of file HeyParser.hh.

Public Member Functions

 HeyParserException (const char *msg=NULL, const char *value=NULL)
 Construct a HeyParserException object with an optional descriptive message.

const char * getMessage (void) const
const char * getValue (void) const

Private Attributes

const char * hpe_Message
 A short message describing the problem.

const char * hpe_Value
 The value that caused the problem.


Friends

std::ostream & operator<< (std::ostream &os, const HeyParserException &hpe)
 Output stream operator for HeyParserException objects.


Constructor & Destructor Documentation

HeyParserException::HeyParserException const char *  msg = NULL,
const char *  value = NULL
[inline]
 

Construct a HeyParserException object with an optional descriptive message.

Parameters:
msg A short message describing the problem.
value The value that caused the problem.

Definition at line 42 of file HeyParser.hh.

References hpe_Message, and hpe_Value.


Member Function Documentation

const char* HeyParserException::getMessage void   )  const [inline]
 

Returns:
The descriptive message passed into the constructor.

Definition at line 52 of file HeyParser.hh.

References hpe_Message.

const char* HeyParserException::getValue void   )  const [inline]
 

Returns:
The value passed into the constructor.

Definition at line 60 of file HeyParser.hh.

References hpe_Value.


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &  os,
const HeyParserException hpe
[friend]
 

Output stream operator for HeyParserException objects.

Currently just prints out the message passed into the constructor.

Parameters:
os The destination output stream.
hpe The object to output.
Returns:
The value of the 'os' parameter.

Definition at line 73 of file HeyParser.hh.


The documentation for this class was generated from the following file:
Generated on Mon Dec 1 16:30:34 2003 for CPU Broker by doxygen 1.3.4