ParseException Class Reference

An exception indicating a parsing error. More...

#include <ParseException.h++>

Inheritance diagram for ParseException:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 ParseException (String message, int line=0, int character=0)
 Construct a new ParseException with the given cause message.
int getLine () const throw ()
 Get the line number of the error.
int getCharacter () const throw ()
 Get the character position (within the line) of the error.
void write (std::ostream &stream) const
 Write a textual representation of the exception to a stream.
String getMessage () const throw ()
 Get the message associated with the exception.
virtual const char * what () const throw ()
 Get the message associated with the exception.
String toString () const
 Get a textual representation of the exception as a String.

Protected Attributes

String _message
 The cause message.

Detailed Description

An exception indicating a parsing error.

Author:
Mark Lindner

Constructor & Destructor Documentation

ParseException ( String  message,
int  line = 0,
int  character = 0 
)

Construct a new ParseException with the given cause message.

Parameters:
message The cause message.
line The line number of the error.
character The character position (within the line) of the error.

Member Function Documentation

int getCharacter (  )  const throw () [inline]

Get the character position (within the line) of the error.

int getLine (  )  const throw () [inline]

Get the line number of the error.

String getMessage (  )  const throw () [inline, inherited]

Get the message associated with the exception.

String toString (  )  const [inline, inherited]

Get a textual representation of the exception as a String.

virtual const char* what (  )  const throw () [inline, virtual, inherited]

Get the message associated with the exception.

void write ( std::ostream &  stream  )  const [virtual]

Write a textual representation of the exception to a stream.

Reimplemented from Exception.


Member Data Documentation

String _message [protected, inherited]

The cause message.


The documentation for this class was generated from the following files:
Generated on Sat Nov 26 16:49:09 2011 for libcommonc++ by  doxygen 1.6.3