Error checking types use the same error codes as the SOFTIMAGE|XSI SDK. The error type is called SI_Error and can have the following values:
|
General Errors |
Crosswalk SDK-specific Errors |
|
SI_SUCCESS SI_ERR_NONE SI_ERR_STATUS_MSG SI_ERR_MESSAGE_MSG SI_ERR_WARNING_MSG SI_ERR_ERROR_MSG SI_ERR_MODE_MSG SI_ERR_INTERNAL SI_ERR_NOTYETIMPLEMENTED SI_ERR_NOTSUPPORTED |
SI_FILE_NOT_FOUND SI_NO_AVAILABLE_DRIVER |
Use the _SI_CALL macro to validate and handle errors. Using the _SI_CALL macro requires a variable called result of type SI_Error in the current function scope. The _SI_CALL macro also requires a string value indicating debug information in case the function fails.
For example :
SI_Error result = SI_SUCCESS;
_SI_CALL(CSIBCUtil::Open("foo"),_SI_TEXT("Opening File Failed"));Softimage|Crosswalk v3.11