Error Reporting
- Updated2023-09-07
- 1 minute(s) read
Error Reporting
Errors are defined as the enumeration niVB_Status. A value of 0 represents success. Values greater than 0 represent warnings. Values less than 0 represent errors.
The last error encountered is stored in the library handle. You can retrieve an error description using the function niVB_GetErrorDescription. You can retrieve extended error information using the function niVB_GetExtendedErrorInformation.
You can perform error handling by passing an error status to the function NIVB_FAILED. This function returns true if the status is an error.
You can assign the return value of a function to a local status variable by calling niVB_Status_Assign. This function enforces precedence such that the first failure that occurs is maintained and not overwritten. The function returns true if the status passed was updated. You can check for a warning status by calling niVB_Status_Warning and for an error status by calling niVB_Status_Failed.