ddc
Public Member Functions | Public Attributes | List of all members
CExpc Class Reference

generic local exception class moo: derived from stdexcept runtime_error More...

#include <utilit.h>

Inheritance diagram for CExpc:
Inheritance graph
[legend]
Collaboration diagram for CExpc:
Collaboration graph
[legend]

Public Member Functions

 CExpc (int ErrorCode) throw ()
 
 CExpc (int ErrorCode, const string &Cause) throw ()
 
 CExpc (const string &Cause) throw ()
 
 CExpc (int ErrorCode, const char *format,...) throw ()
 
 CExpc (const char *format,...) throw ()
 
 CExpc (const CExpc &from) throw ()
 copy constructor More...
 
virtual ~CExpc () throw ()
 destructor More...
 
void Set (const char *format,...) throw ()
 set m_strCause with a printf() format More...
 
void vSet (const char *format, va_list &arglst) throw ()
 set m_strCause with a vprintf() format More...
 
CExpcoperator= (const CExpc &from) throw ()
 assignment constructor More...
 
virtual const char * what () const throw ()
 stdexcept interface More...
 
virtual int code () const throw ()
 error code interface More...
 

Public Attributes

int m_ErrorCode
 internal error code (see ../CommonLib/DDCInternalError.h) More...
 
string m_strCause
 symbolic error message (should also be returned by what() method) More...
 

Detailed Description

generic local exception class moo: derived from stdexcept runtime_error

Constructor & Destructor Documentation

◆ CExpc() [1/6]

CExpc::CExpc ( int  ErrorCode)
throw (
)

References GetDDCErrorString().

Here is the call graph for this function:

◆ CExpc() [2/6]

CExpc::CExpc ( int  ErrorCode,
const string &  Cause 
)
throw (
)

◆ CExpc() [3/6]

CExpc::CExpc ( const string &  Cause)
throw (
)

◆ CExpc() [4/6]

CExpc::CExpc ( int  ErrorCode,
const char *  format,
  ... 
)
throw (
)

◆ CExpc() [5/6]

CExpc::CExpc ( const char *  format,
  ... 
)
throw (
)

◆ CExpc() [6/6]

CExpc::CExpc ( const CExpc from)
throw (
)

copy constructor

◆ ~CExpc()

virtual CExpc::~CExpc ( )
throw (
)
inlinevirtual

destructor

Member Function Documentation

◆ Set()

void CExpc::Set ( const char *  format,
  ... 
)
throw (
)

set m_strCause with a printf() format

◆ vSet()

void CExpc::vSet ( const char *  format,
va_list &  arglst 
)
throw (
)

set m_strCause with a vprintf() format

References DDC_STATIC_BUFLEN.

◆ operator=()

CExpc & CExpc::operator= ( const CExpc from)
throw (
)

assignment constructor

◆ what()

const char * CExpc::what ( ) const
throw (
)
virtual

◆ code()

int CExpc::code ( ) const
throw (
)
virtual

Member Data Documentation

◆ m_ErrorCode

int CExpc::m_ErrorCode

internal error code (see ../CommonLib/DDCInternalError.h)

Referenced by CConcSession::GetOccurrences().

◆ m_strCause

string CExpc::m_strCause

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