#include <kerror.h>
Definition at line 48 of file kerror.h.
Public Member Functions | |
| KError (char *pStringArray[], int pErrorCount) | |
| Constructor. | |
| ~KError () | |
| Destructor. | |
| int | GetErrorCount () const |
| Get the size of the error string table. | |
| char * | GetErrorString (int pIndex) const |
| Get the error message string. | |
| void | SetLastError (int pIndex, 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. | |
| char * | GetLastErrorString () const |
| Get the message string associated with the last error. | |
| void | SetLastErrorString (char const *pString) |
| Set the message string associated with the last error. | |
| void | ClearLastError () |
| Reset the last error. | |
| KError | ( | char * | pStringArray[], | |
| int | pErrorCount | |||
| ) |
Constructor.
| pStringArray | The error string table in use. | |
| pErrorCount | Number of elements in the error string table. |
| ~KError | ( | ) |
Destructor.
| int GetErrorCount | ( | ) | const |
Get the size of the error string table.
| char* GetErrorString | ( | int | pIndex | ) | const |
Get the error message string.
| pIndex | Error index. |
| void SetLastError | ( | int | pIndex, | |
| char * | pString | |||
| ) |
Set the last error ID and the last error string.
| pIndex | Error index. | |
| pString | Error string. |
| void SetLastErrorID | ( | int | pIndex | ) |
Set the last error index.
| pIndex | Error index. |
| int GetLastErrorID | ( | ) | const |
Return the last error index.
| char* GetLastErrorString | ( | ) | const |
Get the message string associated with the last error.
| void SetLastErrorString | ( | char const * | pString | ) |
Set the message string associated with the last error.
| pString | Error string. This method should be called after KError::SetLastErrorID() in order to customize the error string. |
| void ClearLastError | ( | ) |
Reset the last error.