|
Error handling |
Top Previous Next |
|
Error handling is a very important part of the interface.
The error handling is done using 2 steps # Step 1 Some functions return a int. If this int is equal to -1 no problems were detected. If it was different from -1 a error was found and the caller needs to react. Not all functions returns a errorindex. If a problem was found after calling these functions use GetErrorIndex to check if a problem was found.
# Step 2 The function GetErrorMessage lets the caller retrieve a string with a error message to aid the user to pinpoint the problem. The function GetErrorIndex lets the user retrieve a int that indicate the number of the error.
List if functions:
|