Skip to content

File error_context.cpp

FileList > base > error_context.cpp

Go to the source code of this file

  • #include "error_context.hpp"
  • #include "error_code.h"
  • #include "error_manager.h"
  • #include "memory_alloc.h"
  • #include "thread_entry.hpp"
  • #include "thread_manager.hpp"
  • #include <cstring>
  • #include "memory_wrapper.hpp"

Namespaces

Type Name
namespace cuberr

Macros

Type Name
define ERMSG_ARGS (em) /* multi line expression */
define ERMSG_LOG (text, var) [**ERROR\_CONTEXT\_LOG**](error__context_8cpp.md#define-error_context_log) (text #[**var**](broker__monitor_8c.md#function-timeout) " = " [**ERMSG\_MSG**](error__context_8cpp.md#define-ermsg_msg), [**ERMSG\_ARGS**](error__context_8cpp.md#define-ermsg_args) ([**var**](broker__monitor_8c.md#function-timeout)))
define ERMSG_MSG "{ %p: errid=%d, [**sev**](broker__monitor_8c.md#function-timeout)=%d, [**fname**](broker__monitor_8c.md#function-timeout)=%s, line=%d, msg\_area=%[**p**](dynamic__load_8c.md#variable-p)(%s)\_size=%[**zu**](broker__monitor_8c.md#function-timeout), [**msgbuf**](broker__monitor_8c.md#function-timeout)=%[**p**](dynamic__load_8c.md#variable-p)(%s), args=%[**p\_n**](broker__monitor_8c.md#function-timeout)=%d }"
define ERROR_CONTEXT_LOG (...) [**if**](dynamic__load_8c.md#function-if) (m\_logging) [**\_er\_log\_debug**](error__manager_8c.md#function-_er_log_debug) ([**ARG\_FILE\_LINE**](error__manager_8h.md#define-arg_file_line), [**\_\_VA\_ARGS\_\_**](broker__monitor_8c.md#function-timeout))

Macro Definition Documentation

define ERMSG_ARGS

#define ERMSG_ARGS (
    em
) `/* multi line expression */`

define ERMSG_LOG

#define ERMSG_LOG (
    text,
    var
) `ERROR_CONTEXT_LOG (text # var " = " ERMSG_MSG , ERMSG_ARGS ( var ))`

define ERMSG_MSG

#define ERMSG_MSG `"{ %p: errid=%d, sev =%d, fname =%s, line=%d, msg_area=% p (%s)_size=% zu , msgbuf =% p (%s), args=% p_n =%d }"`

define ERROR_CONTEXT_LOG

#define ERROR_CONTEXT_LOG (
    ...
) `if (m_logging) _er_log_debug ( ARG_FILE_LINE , __VA_ARGS__ )`


The documentation for this class was generated from the following file cubrid/src/base/error_context.cpp