The Gnome Chemistry Utils 0.13.3
|
#include <gcu/formula.h>
Public Member Functions | |
parse_error (const std::string &__arg, int start, int length) | |
virtual const char * | what () const throw () |
const char * | what (int &start, int &length) const throw () |
void | add_offset (int offset) |
Exception class derived from std::exception used for errors encountered when parsing a formula.
gcu::parse_error::parse_error | ( | const std::string & | __arg, |
int | start, | ||
int | length | ||
) | [explicit] |
Takes a character string describing the error and two integers indicating where the error occured.
void gcu::parse_error::add_offset | ( | int | offset | ) | [inline] |
virtual const char* gcu::parse_error::what | ( | ) | const throw () [virtual] |
Returns a C-style character string describing the general cause of the current error (the same string passed to the constructor).
const char* gcu::parse_error::what | ( | int & | start, |
int & | length | ||
) | const throw () |
Returns a C-style character string describing the general cause of the current error (the same string passed to the constructor).