Support Forum       Library Source       SourceForge Page       G3D Web Page     
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Public Attributes | List of all members
G3D::TextInput::WrongString Class Reference

String read from input did not match expected string. More...

Inherits G3D::TextInput::TokenException.

Public Types

enum  { UNKNOWN = -1 }
 

Public Member Functions

 WrongString (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

exception.

 
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.
 

Detailed Description

String read from input did not match expected string.

Member Enumeration Documentation

anonymous enum
inherited
Enumerator:
UNKNOWN 

Constructor & Destructor Documentation

G3D::TextInput::WrongString::WrongString ( const std::string src,
int  ln,
int  ch,
const std::string e,
const std::string a 
)

Member Function Documentation

std::string G3D::ParseError::formatFileInfo ( ) const
inherited

If information is known, ends in ": ", otherwise empty.

Member Data Documentation

std::string G3D::TextInput::WrongString::actual
int64 G3D::ParseError::byte
inherited

For a binary file, the location of the parse error.

-1 if unknown.

int G3D::ParseError::character
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::WrongString::expected
std::string G3D::ParseError::filename
inherited
int G3D::ParseError::line
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().

std::string G3D::ParseError::message
inherited
std::string G3D::TextInput::TokenException::sourceFile
inherited

Name of file being parsed when exception occurred.

Deprecated:
Use filename

documentation generated on Sat Jan 12 2013 22:49:57 using doxygen 1.8.2