SORTIE Core C++ Documentation
|
ERROR AND MESSAGE PASSING This defines a set of codes that can be used to pass errors and messages. More...
#include <string>
Classes | |
struct | modelMsg |
This is the structure for sending and receiving messages. More... | |
struct | modelErr |
Error reporting structure. More... | |
Variables | |
const int | UNKNOWN = 0 |
Message of unknown type. More... | |
const int | NO_MESSAGE = 1 |
No message to pass. More... | |
const int | PAUSE_RUN = 2 |
Request to pause run. More... | |
const int | RUN = 3 |
Request to run model. More... | |
const int | INPUT_FILE = 4 |
Request to input file. More... | |
const int | QUIT = 5 |
Request to quit model. More... | |
const int | MODEL_READY = 6 |
Model is in ready state. More... | |
const int | MODEL_NOT_READY = 7 |
Model is not in ready state. More... | |
const int | MODEL_PAUSED = 8 |
Model is paused. More... | |
const int | RUN_COMPLETE = 9 |
Requested run is complete. More... | |
const int | COMMAND_DONE = 10 |
Model is finished executing command. More... | |
const int | INFO = 11 |
Message in the cMoreInfo string should be passed to the user. More... | |
const int | BAD_ARGUMENT = 12 |
A bad or missing argument has been passed from the interface for a command. More... | |
const int | BAD_COMMAND = 13 |
A bad command has been passed from the interface. More... | |
const int | CANT_FIND_OBJECT = 14 |
An object could not be found. More... | |
const int | TREE_WRONG_TYPE = 15 |
A tree was not of an expected type. More... | |
const int | ACCESS_VIOLATION = 16 |
An access violation occurred. More... | |
const int | BAD_FILE = 17 |
Bad file name or path - couldn't open the file. More... | |
const int | BAD_FILE_TYPE = 18 |
A file was not an expected type. More... | |
const int | BAD_XML_FILE = 19 |
XML file is malformed or invalid. More... | |
const int | NEED_FILE = 20 |
Expected file name and didn't get one. More... | |
const int | DATA_MISSING = 21 |
Couldn't find needed data in file. More... | |
const int | BAD_DATA = 22 |
Data was scrambled, of incorrect type, or otherwise invalid. More... | |
const int | DATA_READ_ONLY = 23 |
Data isn't accessible for writing. More... | |
const int | ILLEGAL_OP = 24 |
Illegal operation. More... | |
ERROR AND MESSAGE PASSING This defines a set of codes that can be used to pass errors and messages.
The modelErr structure is used to pass fatal errors. These errors stop processing and cause the erasure of all data. This puts the model in a state ready to be initialized once again.
The modelMsg structure is used to pass non-fatal errors and messages. These stop processing but do not cause data erasure. An object passing one of these messages is responsible for internal data cleanup.
Copyright 2003 Charles D. Canham.
Edit history:
---------------------—
10/26/2012: Changed to std::strings from c chars (LEM)
const int ACCESS_VIOLATION = 16 |
An access violation occurred.
const int BAD_ARGUMENT = 12 |
A bad or missing argument has been passed from the interface for a command.
const int BAD_COMMAND = 13 |
A bad command has been passed from the interface.
const int BAD_DATA = 22 |
Data was scrambled, of incorrect type, or otherwise invalid.
const int BAD_FILE = 17 |
Bad file name or path - couldn't open the file.
const int BAD_FILE_TYPE = 18 |
A file was not an expected type.
const int BAD_XML_FILE = 19 |
XML file is malformed or invalid.
const int CANT_FIND_OBJECT = 14 |
An object could not be found.
const int COMMAND_DONE = 10 |
Model is finished executing command.
const int DATA_MISSING = 21 |
Couldn't find needed data in file.
const int DATA_READ_ONLY = 23 |
Data isn't accessible for writing.
const int ILLEGAL_OP = 24 |
Illegal operation.
const int INFO = 11 |
Message in the cMoreInfo string should be passed to the user.
const int INPUT_FILE = 4 |
Request to input file.
const int MODEL_NOT_READY = 7 |
Model is not in ready state.
const int MODEL_PAUSED = 8 |
Model is paused.
const int MODEL_READY = 6 |
Model is in ready state.
const int NEED_FILE = 20 |
Expected file name and didn't get one.
const int NO_MESSAGE = 1 |
No message to pass.
const int PAUSE_RUN = 2 |
Request to pause run.
const int QUIT = 5 |
Request to quit model.
const int RUN = 3 |
Request to run model.
const int RUN_COMPLETE = 9 |
Requested run is complete.
const int TREE_WRONG_TYPE = 15 |
A tree was not of an expected type.
const int UNKNOWN = 0 |
Message of unknown type.