FS2_Open
Open source remastering of the Freespace 2 engine
|
Class thrown when a required token is not found. More...
#include <consoleparse.h>
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 |
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.
|
inline |
Invalid/Unexpected token constructor.
[in] | found_str | The token that was found |
[in] | expected_dct | The token type that was expected |
Definition at line 59 of file consoleparse.h.
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.