Support Forum G3D Web Page |
Thrown by TextInput, Any, and other parsers on unexpected input. More...
Inherited by G3D::Any::IndexOutOfBounds, G3D::Any::KeyNotFound, and G3D::TextInput::TokenException.
Public Types | |
enum | { UNKNOWN = -1 } |
Public Member Functions | |
ParseError () | |
ParseError (const String &f, int l, int c, const String &m) | |
ParseError (const String &f, int64 b, const String &m) | |
virtual | ~ParseError () |
String | formatFileInfo () const |
If information is known, ends in ": ", otherwise empty. More... | |
Public Attributes | |
int64 | byte |
For a binary file, the location of the parse error. More... | |
int | character |
Character number (in the line) of the start of the token which caused the exception. More... | |
String | filename |
Empty means unknown. More... | |
int | line |
For a text file, the line number is the line number of start of token which caused the exception. More... | |
String | message |
|
inline |
|
inlinevirtual |
String G3D::ParseError::formatFileInfo | ( | ) | const |
If information is known, ends in ": ", otherwise empty.
Referenced by G3D::AnyTableReader::get().
int64 G3D::ParseError::byte |
For a binary file, the location of the parse error.
ParseError::UNKNOWN if unknown.
int G3D::ParseError::character |
Character number (in the line) of the start of the token which caused the exception.
1 is the character in the line. ParseError::UNKNOWN if unknown.
Referenced by G3D::Any::IndexOutOfBounds::IndexOutOfBounds(), and G3D::Any::KeyNotFound::KeyNotFound().
String G3D::ParseError::filename |
Empty means unknown.
Referenced by G3D::Any::IndexOutOfBounds::IndexOutOfBounds(), and G3D::Any::KeyNotFound::KeyNotFound().
int G3D::ParseError::line |
For a text file, the line number is the line number of start of token which caused the exception.
1 is the first line of the file. ParseError::UNKNOWN if unknown. Note that you can use TextInput::Settings::startingLineNumberOffset to shift the effective line number that is reported by that class.
Referenced by G3D::Any::IndexOutOfBounds::IndexOutOfBounds(), and G3D::Any::KeyNotFound::KeyNotFound().
String G3D::ParseError::message |
Referenced by G3D::AnyTableReader::get(), and G3D::Any::IndexOutOfBounds::IndexOutOfBounds().