TrinityCore
|
#include <ParseError.h>
Public Types | |
enum | { UNKNOWN = -1 } |
Public Member Functions | |
ParseError () | |
virtual | ~ParseError () |
ParseError (const std::string &f, int l, int c, const std::string &m) | |
ParseError (const std::string &f, int64 b, const std::string &m) | |
std::string | formatFileInfo () const |
Public Attributes | |
std::string | filename |
int64 | byte |
int | line |
int | character |
std::string | message |
|
inline |
std::string G3D::ParseError::formatFileInfo | ( | ) | const |
If information is known, ends in ": ", otherwise empty
int64 G3D::ParseError::byte |
For a binary file, the location of the parse error. -1 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. May be -1 if unknown.
std::string G3D::ParseError::filename |
Empty means unknown
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. -1 means unknown. Note that you can use TextInput::Settings::startingLineNumberOffset to shift the effective line number that is reported by that class.
std::string G3D::ParseError::message |