FS2_Open
Open source remastering of the Freespace 2 engine
errParse Class Reference

Class thrown when a required token is not found. More...

#include <consoleparse.h>

Inheritance diagram for errParse:
errParseOverflow errParseString

Public Member Functions

 errParse (const char *found_str, dc_token expected_dct)
 Invalid/Unexpected token constructor. More...
 

Public Attributes

SCP_string found_token
 
dc_token expected_type
 

Detailed Description

Class thrown when a required token is not found.

This is a basic parser error, it contains the token (a single word) that was found, and the expected token type. Some DCT's, such as the DCT_STRING's, have their own specific requirements for error handling, and as such get their own class derived from errParse. The catching routines should be able to catch the derived error objects, but if not, they can be caught by a routine looking for the base class and then be casted to their proper type.

Definition at line 49 of file consoleparse.h.

Constructor & Destructor Documentation

errParse::errParse ( const char *  found_str,
dc_token  expected_dct 
)
inline

Invalid/Unexpected token constructor.

Parameters
[in]found_strThe token that was found
[in]expected_dctThe token type that was expected

Definition at line 59 of file consoleparse.h.

Member Data Documentation

dc_token errParse::expected_type

Definition at line 52 of file consoleparse.h.

SCP_string errParse::found_token

Definition at line 51 of file consoleparse.h.


The documentation for this class was generated from the following file: