| Support Forum Library Source SourceForge Page G3D Web Page |
Inherits G3D::TextInput::TokenException.
Public Types | |
| enum | { UNKNOWN = -1 } |
Public Member Functions | |
| WrongSymbol (const std::string &src, int ln, int ch, const std::string &e, const std::string &a) | |
| std::string | formatFileInfo () const |
| If information is known, ends in ": ", otherwise empty. | |
Public Attributes | |
| std::string | actual |
| int64 | byte |
| For a binary file, the location of the parse error. | |
| int | character |
Character number (in the line) of the start of the token which caused the | |
| std::string | expected |
| std::string | filename |
| Empty means unknown. | |
| int | line |
| For a text file, the line number is the line number of start of token which caused the exception. | |
| std::string | message |
| std::string | sourceFile |
| Name of file being parsed when exception occurred. | |
| G3D::TextInput::WrongSymbol::WrongSymbol | ( | const std::string & | src, |
| int | ln, | ||
| int | ch, | ||
| const std::string & | e, | ||
| const std::string & | a | ||
| ) |
|
inherited |
If information is known, ends in ": ", otherwise empty.
| std::string G3D::TextInput::WrongSymbol::actual |
|
inherited |
For a binary file, the location of the parse error.
-1 if unknown.
|
inherited |
Character number (in the line) of the start of the token which caused the
exception.
1 is the character in the line. May be -1 if unknown.
Referenced by G3D::Any::IndexOutOfBounds::IndexOutOfBounds(), and G3D::Any::KeyNotFound::KeyNotFound().
| std::string G3D::TextInput::WrongSymbol::expected |
|
inherited |
Empty means unknown.
Referenced by G3D::Any::IndexOutOfBounds::IndexOutOfBounds(), and G3D::Any::KeyNotFound::KeyNotFound().
|
inherited |
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. -1 means 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().
|
inherited |
|
inherited |
Name of file being parsed when exception occurred.
1.8.2