Support Forum G3D Web Page |
Thrown by the read methods. More...
Inherits G3D::TextInput::TokenException.
Public Types | |
enum | { UNKNOWN = -1 } |
Public Member Functions | |
WrongTokenType (const String &src, int ln, int ch, Token::Type e, Token::Type a) | |
String | formatFileInfo () const |
If information is known, ends in ": ", otherwise empty. More... | |
Public Attributes | |
Token::Type | actual |
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... | |
Token::Type | expected |
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 |
Thrown by the read methods.
G3D::TextInput::WrongTokenType::WrongTokenType | ( | const String & | src, |
int | ln, | ||
int | ch, | ||
Token::Type | e, | ||
Token::Type | a | ||
) |
|
inherited |
If information is known, ends in ": ", otherwise empty.
Referenced by G3D::AnyTableReader::get().
Token::Type G3D::TextInput::WrongTokenType::actual |
|
inherited |
For a binary file, the location of the parse error.
ParseError::UNKNOWN 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. ParseError::UNKNOWN if unknown.
Referenced by G3D::Any::IndexOutOfBounds::IndexOutOfBounds(), and G3D::Any::KeyNotFound::KeyNotFound().
Token::Type G3D::TextInput::WrongTokenType::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. 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().
|
inherited |
Referenced by G3D::AnyTableReader::get(), and G3D::Any::IndexOutOfBounds::IndexOutOfBounds().