An exception indicating a parsing error. More...
#include <ParseException.h++>

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. | |
An exception indicating a parsing error.
| ParseException | ( | String | message, | |
| int | line = 0, |
|||
| int | character = 0 | |||
| ) |
Construct a new ParseException with the given cause message.
| message | The cause message. | |
| line | The line number of the error. | |
| character | The character position (within the line) of the error. |
| 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.
1.6.3