ParseException Class Reference

An exception indicating a parsing error. More...

#include <ParseException.h++>

Inheritance diagram for ParseException:

Inheritance graph
[legend]
Collaboration diagram for ParseException:

Collaboration 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.
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 Member Functions

void _write (std::ostream &stream, const char *name) const

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

void _write ( std::ostream &  stream,
const char *  name 
) const [protected, inherited]

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.

const char* what (  )  const throw () [inline, 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 Apr 17 23:03:09 2010 for libcommonc++ by  doxygen 1.5.9