theKernel 10.0
Loading...
Searching...
No Matches
ccmkkernel::MkExceptionC Class Reference

MkExceptionC - The default-exception of the Programming-Language-Micro-Kernel (PLMK)More...

#include <MkExceptionC_cc.hh>

+ Inheritance diagram for ccmkkernel::MkExceptionC:
+ Collaboration diagram for ccmkkernel::MkExceptionC:

Public Member Functions

 MkExceptionC (const MkExceptionC &e)
 copy constructor
 
virtual ~MkExceptionC () throw ()
 destructor
 
virtual MK_STRN what () const throw ()
 Returns the explanatory string.
 
void Log (MK_DBG debug=0, MK_STRN callfunc=__builtin_FUNCTION(), MK_I32 lvl=0) const
 log the error to MkLogFileC (default: stderr) … → C-API: ErrorLog
 

Static Public Member Functions

static void Raise (MK_MNGN const expobj, MK_STRN const callfunc=__builtin_FUNCTION(), MK_I32 const callline=__builtin_LINE())
 convert an MkErrorC into a Target-Programming-Language (TPL) exception … → C-API: libmkkernel::MkExceptionRaise
 
static MK_ERR Catch (MK_MNGN const expobj, std::exception const *exception, MK_STRN const callfunc=__builtin_FUNCTION())
 convert an Target-Programming-Language (TPL) exception into an MkErrorC … → C-API: libmkkernel::MkExceptionCatch
 
static MK_ERR Catch (MK_MNGN const expobj, std::exception const &exception, MK_STRN const callfunc=__builtin_FUNCTION())
 convert an Target-Programming-Language (TPL) exception into an MkErrorC … → C-API: libmkkernel::MkExceptionCatch
 
static MK_ERR Catch (MK_MNGN const expobj, const std::string &msg, MK_STRN const callfunc=__builtin_FUNCTION())
 convert an Target-Programming-Language (TPL) exception into an MkErrorC … → C-API: libmkkernel::MkExceptionCatch
 

Protected Member Functions

 MkExceptionC (MK_ERR err, MK_STRN const caller, MK_I32 const line)
 constructor
 
 MkExceptionC (MK_MNGN const mng, MK_STRN const caller, MK_I32 const line)
 constructor
 

Protected Attributes

MK_ERR hdl
 link to the MkErrorC object
 

Friends

class MkErrorC
 

Detailed Description

MkExceptionC - The default-exception of the Programming-Language-Micro-Kernel (PLMK)

The Programming-Language-Micro-Kernel (PLMK) provide with MkErrorC a complete error-handling with focus to support the "C" Programming-Language. The support include catch, raise, signal and attributes. In addition every Target-Programming-Language (TPL) add their own error-handling and the purpose of MkExceptionC is to integrate the MkErrorC into the Target-Programming-Language (TPL).

The default-exception MkExceptionC is used to connect the MkErrorC with the Target-Programming-Language (TPL) error-object.

The implementation of an exception depends heavily on the Target-Programming-Language (TPL), starting with no exception at all, for example. C, an exception as a class object, or as an exception as a global attribute.

Attention

Definition at line 23 of file MkExceptionC_cc.hh.

Friends And Related Symbol Documentation

◆ MkErrorC

friend class MkErrorC
friend

Definition at line 25 of file MkExceptionC_cc.hh.


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