API Instance
Every API function, except for support methods, sets the error code of the API Instance. support methods consist of:
- GetLastError()
- GetErrorString()
- GetDiagnostic()
The Sharable Content Object (SCO) can invoke the GetErrorString() function, determine whether or not the most recent API function call was successful and what may have gone wrong. If an error is found the GetLastError() function returns an error code that allows the developer to determine what type of error occurred.