#include <SyncException.h>
Public Member Functions | |
~SyncException () | |
Destructor. | |
void | setExceptionData (const char *msg, DWORD code=NULL) |
Set data of exception. | |
void | clear () |
Clear data of exception. | |
const char * | getErrorMsg () |
Methods to get exception informations. | |
const WCHAR * | wgetErrorMsg () |
const std::wstring | wstrgetErrorMsg () |
_declspec (dllexport) DWORD getErrorCode() | |
Static Public Member Functions | |
static SyncException * | getInstance () |
Method to create the sole instance of SyncException. | |
Protected Member Functions | |
SyncException () | |
Constructor. | |
Private Attributes | |
char * | errorMsg |
The message to display. | |
WCHAR * | werrorMsg |
The same message in WCHAR. | |
DWORD | errorCode |
The error code. | |
Static Private Attributes | |
static SyncException * | pinstance = NULL |
pointer to SyncException instance |
void SyncException::setExceptionData | ( | const char * | msg, | |
DWORD | code = NULL | |||
) |
Set data of exception.
Set members of exception.
References errorCode, errorMsg, and werrorMsg.
Referenced by throwSyncException().