Error Handling

Error Handling

Error Handling

These functions enhance the usefulness of error messages.

Return Error Description Text

VixDiskLib_GetErrorText() returns the textual description of a numeric error code.
char* msg = VixDiskLib_GetErrorText(errCode, NULL);

Free Error Description Text

VixDiskLib_FreeErrorText() deallocates space associated with the error description text.
VixDiskLib_FreeErrorText(msg);