![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cException.h>
Public Member Functions | |
cException (const LOGCHAR_t *pszDescription, LOGLEV_TYPE eLogLevel=LOGLEV_ERROR) noexcept | |
virtual | ~cException ()((void) 0) |
LOGLEV_TYPE | get_Severity () const noexcept |
virtual BOOL | GetErrorMessage (GChar_t *lpszError, UINT nLenMaxError=cExceptionHolder::k_MSG_MAX_SIZE, UINT *pnHelpContext=nullptr) |
cStringL | get_ErrorStr () |
virtual const char * | what () const ((void) 0) |
![]() | |
virtual | ~cExceptionBase () |
Public Attributes | |
const LOGLEV_TYPE | m_eSeverity |
how bad is this ? More... | |
const LOGCHAR_t * | m_pszDescription |
this pointer should be to something static !? More... | |
Static Public Attributes | |
static const LOGCHAR_t * | k_szDescriptionDefault = "Exception" |
Friends | |
class | cExceptionTests |
Base for my custom exceptions: cExceptionHResult, cExceptionSystem, cExceptionAssert System exceptions will of course just throw cExceptionBase uses GRAY_THROW macro to hide STL vs MFC differences. MFC uses base name CException.
|
inlinenoexcept |
|
inlinevirtual |
GRAYCORE_LINK cStringL Gray::cException::get_ErrorStr | ( | ) |
|
inlinenoexcept |
|
virtual |
overloaded to provide context specific error messages.
Compatible with MFC CException and CFileException. Assume this is typically overridden at a higher level.
Reimplemented in Gray::cExceptionAssert, Gray::cExceptionHResult, and GrayLib::cSQLException.
|
inlinevirtual |
STL. store the GetErrorMessage string some place ?
Implements Gray::cExceptionBase.
|
friend |
|
static |
const LOGLEV_TYPE Gray::cException::m_eSeverity |
how bad is this ?
const LOGCHAR_t* Gray::cException::m_pszDescription |
this pointer should be to something static !?