| Support Forum Library Source SourceForge Page G3D Web Page |
Inherits G3D::ParseError.
Inherited by G3D::TextInput::BadMSVCSpecial, G3D::TextInput::WrongString, G3D::TextInput::WrongSymbol, and G3D::TextInput::WrongTokenType.
Public Types | |
| enum | { UNKNOWN = -1 } |
Public Member Functions | |
| virtual | ~TokenException () |
| std::string | formatFileInfo () const |
| If information is known, ends in ": ", otherwise empty. | |
Public Attributes | |
| 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 | 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. | |
Protected Member Functions | |
| TokenException (const std::string &src, int ln, int ch) | |
|
inlinevirtual |
|
protected |
|
inherited |
If information is known, ends in ": ", otherwise empty.
|
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().
|
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 |
| std::string G3D::TextInput::TokenException::sourceFile |
Name of file being parsed when exception occurred.
1.8.2