Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cExceptionAssert Class Reference

#include <cExceptionAssert.h>

Inheritance diagram for Gray::cExceptionAssert:
Gray::cException Gray::cExceptionBase

Public Member Functions

 cExceptionAssert (const LOGCHAR_t *pExp, LOGLEV_TYPE eSeverity, const cDebugSourceLine &src)
 
virtual ~cExceptionAssert ()((void) 0)
 
virtual BOOL GetErrorMessage (GChar_t *lpszError, UINT nMaxError, UINT *pnHelpContext) override
 
- Public Member Functions inherited from Gray::cException
 cException (const LOGCHAR_t *pszDescription, LOGLEV_TYPE eLogLevel=LOGLEV_ERROR) noexcept
 
virtual ~cException ()((void) 0)
 
LOGLEV_TYPE get_Severity () const noexcept
 
cStringL get_ErrorStr ()
 
virtual const char * what () const ((void) 0)
 
- Public Member Functions inherited from Gray::cExceptionBase
virtual ~cExceptionBase ()
 

Static Public Member Functions

static void __stdcall Throw (const LOGCHAR_t *pExp, const cDebugSourceLine &src)
 

Protected Attributes

const LOGCHAR_t *const m_pExp
 
const cDebugSourceLine m_Src
 

Additional Inherited Members

- Public Attributes inherited from Gray::cException
const LOGLEV_TYPE m_eSeverity
 how bad is this ? More...
 
const LOGCHAR_tm_pszDescription
 this pointer should be to something static !? More...
 
- Static Public Attributes inherited from Gray::cException
static const LOGCHAR_tk_szDescriptionDefault = "Exception"
 

Detailed Description

Asserts can be seen as exceptions. details from coded ASSERT stuff.

Constructor & Destructor Documentation

◆ cExceptionAssert()

Gray::cExceptionAssert::cExceptionAssert ( const LOGCHAR_t pExp,
LOGLEV_TYPE  eSeverity,
const cDebugSourceLine src 
)

◆ ~cExceptionAssert()

Gray::cExceptionAssert::~cExceptionAssert ( )
virtual

Member Function Documentation

◆ GetErrorMessage()

BOOL Gray::cExceptionAssert::GetErrorMessage ( GChar_t lpszError,
UINT  nLenMaxError,
UINT *  pnHelpContext 
)
overridevirtual

overloaded to provide context specific error messages.

Note
stupid BOOL return is for MFC compatibility.

Compatible with MFC CException and CFileException. Assume this is typically overridden at a higher level.

Note
stupid BOOL return is for MFC compatibility. allow UNICODE version of this.

Reimplemented from Gray::cException.

◆ Throw()

void GRAYCALL Gray::cExceptionAssert::Throw ( const LOGCHAR_t pExp,
const cDebugSourceLine src 
)
static

These can get left in release code. This is similar to _assert() in M$ code.

Member Data Documentation

◆ m_pExp

const LOGCHAR_t* const Gray::cExceptionAssert::m_pExp
protected

◆ m_Src

const cDebugSourceLine Gray::cExceptionAssert::m_Src
protected

The documentation for this class was generated from the following files: