Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

LoggingExceptions.h File Reference

More...

Go to the source code of this file.

Classes

class  Exception
class  LoggingException
class  OSException

Defines

#define EXCEPTION_MANDATORY
#define STACK_ADD
#define throw_exception(context, exception)
#define check_result(code, context, desc)   if((code)) throw_exception((context), desc)

Variables

 EWL_BEGIN_NAMESPACE
 EWL_END_NAMESPACE


Detailed Description

Version:
Revision
1.8

Define Documentation

#define check_result code,
context,
desc   )     if((code)) throw_exception((context), desc)
 

#define EXCEPTION_MANDATORY
 

Value:

__FILE__,                                     \
        __LINE__,                                     \
        std::string(CLASS_PREFIX) + __FUNCTION__

#define STACK_ADD
 

#define throw_exception context,
exception   ) 
 

Value:

{ STACK_ADD;                                          \
  {                                                   \
     char *text, *desc;                               \
     int  code;                                       \
     std::string exc;                                      \
                                                      \
     code = edg_wll_Error((context), &text, &desc);   \
     exc = exception;                                 \
     if (text) {                                      \
        exc += ": ";                                  \
        exc += text;                                  \
     }                                                \
     if (desc) {                                      \
        exc += ": ";                                  \
        exc += desc;                                  \
     }                                                \
     free(text);                                      \
     free(desc);                                      \
     throw LoggingException(EXCEPTION_MANDATORY,      \
                            code,                     \
                            exc);                     \
  }                                                   \
}


Variable Documentation

EWL_BEGIN_NAMESPACE
 

EWL_END_NAMESPACE
 


Generated on Wed Mar 1 00:38:53 2006 for L&B API CPP by doxygen 1.3.5