This class provides access to the last error integer ID and is
used for translating from integer error ID to strings.
Internally a
KError instance maintains a translation table from integer IDs
to strings. Note that different classes and systems in FBX (e.g.
KFbxSdkManager) have different sets of
error codes, and maintain different instances of the
KError class. The translation table is an array of strings
(char*) and the index into the string table is assumed to be the
error number.
- See also:
- KFbxSdkManager::EError
- KFbxSdkManager::GetError()
Definition at line 57 of file kerror.h.
Public Member Functions
|
| |
KError
() |
| |
Default constructor.
|
| |
KError
(const char *pStringArray[], int pErrorCount) |
| |
Creates a
KError from an array of strings.
|
| |
~KError
() |
| |
Destructor.
|
| void |
Reset
(const char *pStringArray[], int pErrorCount) |
| |
Reset the object (clears the last error) and
use the received error string table.
|
| int |
GetErrorCount
() const |
| |
Get the size of the error string table.
|
| const char
* |
GetErrorString
(int pIndex) const |
| |
Get the error message string.
|
| void |
SetLastError
(int pIndex, const char *pString) |
| |
Set the last error ID and the last error
string.
|
| void |
SetLastErrorID
(int pIndex) |
| |
Set the last error index.
|
| int |
GetLastErrorID
() const |
| |
Return the last error index.
|
| const char
* |
GetLastErrorString
() const |
| |
Get the message string associated with the
last error.
|
| void |
SetLastErrorString
(const char *pString) |
| |
Set the message string associated with the
last error.
|
| void |
ClearLastError
() |
| |
Reset the last error.
|