#include <CErrorStringService.h>
|
| enum | { kDefaultIID = IID_IERRORSTRINGSERVICE } |
| |
| | CPMUnknown (IPMUnknown *boss) |
| |
Base class for implementing IErrorStringService.
| virtual PMString CErrorStringService::GetUserErrorString | ( | ErrorCode | errCode, | | | IPMUnknown * | errInfo | | ) | | const |
| virtual |
Return the string associated with the error code. If there isn't one return an empty string.
- Parameters
| errCode | the error code we're looking up |
| errInfo | whatever errInfo is currently in the error state |
- Returns
- PMString the user string for errCode, kFalse otherwise
Implements IErrorStringService.
| virtual bool16 CErrorStringService::HasUserErrorString | ( | ErrorCode | errCode, | | | IPMUnknown * | errInfo | | ) | | const |
| virtual |
See if the service provider has a string for errCode. When searching for an error string, the application may iterate over all the services asking for a string. A quick check to see if it is even your prefix is advised. It could be that it is your error, yet you don't have a string for it, then return kFalse.
- Parameters
| errCode | the error code we're looking up |
| errInfo | whatever errInfo is currently in the error state |
- Returns
- kTrue if the service supplies a string for errCode, kFalse otherwise
Implements IErrorStringService.