#include <ClientException.h>
Public Member Functions | |
~ClientException () | |
Destructor. | |
void | setExceptionData (const char *msg, DWORD code=NULL, bool fatalError=false, bool needDisplay=false) |
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 () |
DWORD | getErrorCode () |
bool | isFatal () |
bool | needMessageBox () |
Static Public Member Functions | |
static ClientException * | getInstance () |
Method to create the sole instance of ClientException. | |
Protected Member Functions | |
ClientException () | |
Constructor. | |
Private Attributes | |
char * | errorMsg |
The message to display. | |
WCHAR * | werrorMsg |
The same message in WCHAR. | |
DWORD | errorCode |
The error code. | |
bool | fatal |
is this error critic for the application? | |
bool | useMessageBox |
do we need a messageBox displayed? | |
Static Private Attributes | |
static ClientException * | pinstance = NULL |
pointer to ClientException instance |