Error Codes
Every function in the WMX3 library returns ErrorCode::None on success or another error code on failure. The error code explains what caused the function to fail.
Each module defines its own error code enumerator class. These enumerator classes extend the base ErrorCode class, which contains error codes that may be returned by a function of any class. In addition, several error codes that are specific to the module are defined. Every function contained in a module will return one of the error codes defined in the error code enumerator class of that module.
The ErrorToString function defined in the main class of each module will return the string representation of an error code returned by one of the functions in that class. If an error code returned by a function in another module is passed to the ErrorToString function, the ErrorCodeNotDefined error will be returned (unless the error code is one of the error codes defined in the base ErrorCode class).
The following sections contain information of the error codes in WMX3.