CUBRID Engine  latest
cuberr::er_message Struct Reference

#include <error_context.hpp>

Collaboration diagram for cuberr::er_message:
Collaboration graph

Public Member Functions

 er_message (const bool &logging)
 
 ~er_message ()
 
void swap (er_message &other)
 
void clear_error (void)
 
void set_error (int error_id, int error_severity, const char *filename, int line_no)
 
void reserve_message_area (std::size_t size)
 
void clear_message_area (void)
 
void clear_args (void)
 

Public Attributes

int err_id
 
int severity
 
const char * file_name
 
int line_no
 
std::size_t msg_area_size
 
char * msg_area
 
er_va_argargs
 
int nargs
 
char msg_buffer [ER_EMERGENCY_BUF_SIZE]
 

Private Member Functions

 er_message (er_message &)
 

Private Attributes

const boolm_logging
 

Detailed Description

Definition at line 45 of file error_context.hpp.

Constructor & Destructor Documentation

cuberr::er_message::er_message ( const bool logging)

Definition at line 49 of file error_context.cpp.

References m_logging.

cuberr::er_message::~er_message ( )

Definition at line 64 of file error_context.cpp.

References clear_args(), clear_message_area(), and ERMSG_LOG.

cuberr::er_message::er_message ( er_message )
private

Member Function Documentation

void cuberr::er_message::clear_args ( void  )

Definition at line 175 of file error_context.cpp.

References args, free_and_init, nargs, and NULL.

Referenced by er_vsprintf(), and ~er_message().

Here is the caller graph for this function:

void cuberr::er_message::clear_error ( void  )

Definition at line 139 of file error_context.cpp.

References ER_WARNING_SEVERITY, err_id, file_name, line_no, msg_area, NO_ERROR, NULL, and severity.

Referenced by cuberr::context::clear_all_levels(), cuberr::context::clear_current_error_level(), and er_set_internal().

Here is the caller graph for this function:

void cuberr::er_message::clear_message_area ( void  )

Definition at line 163 of file error_context.cpp.

References msg_area, msg_area_size, and msg_buffer.

Referenced by cuberr::context::clear_all_levels(), reserve_message_area(), and ~er_message().

Here is the caller graph for this function:

void cuberr::er_message::reserve_message_area ( std::size_t  size)

Definition at line 185 of file error_context.cpp.

References clear_message_area(), ERMSG_LOG, msg_area, and msg_area_size.

Referenced by er_set_area_error(), and er_set_internal().

Here is the caller graph for this function:

void cuberr::er_message::set_error ( int  error_id,
int  error_severity,
const char *  filename,
int  line_no 
)

Definition at line 149 of file error_context.cpp.

References assert, ER_FAILED, ER_LAST_ERROR, err_id, file_name, line_no, and severity.

Referenced by er_set_internal().

Here is the caller graph for this function:

void cuberr::er_message::swap ( er_message other)

Definition at line 71 of file error_context.cpp.

References args, assert, ERMSG_LOG, err_id, file_name, line_no, msg_area, msg_area_size, msg_buffer, nargs, and severity.

Referenced by cuberr::context::pop_error_stack().

Here is the caller graph for this function:

Member Data Documentation

er_va_arg* cuberr::er_message::args

Definition at line 65 of file error_context.hpp.

Referenced by clear_args(), er_vsprintf(), and swap().

const char* cuberr::er_message::file_name

Definition at line 61 of file error_context.hpp.

Referenced by clear_error(), er_all(), er_emergency(), er_set_area_error(), set_error(), and swap().

int cuberr::er_message::line_no

Definition at line 62 of file error_context.hpp.

Referenced by clear_error(), er_all(), er_emergency(), er_set_area_error(), set_error(), and swap().

const bool& cuberr::er_message::m_logging
private

Definition at line 73 of file error_context.hpp.

Referenced by er_message().

std::size_t cuberr::er_message::msg_area_size
char cuberr::er_message::msg_buffer[ER_EMERGENCY_BUF_SIZE]

Definition at line 67 of file error_context.hpp.

Referenced by clear_message_area(), and swap().

int cuberr::er_message::nargs

Definition at line 66 of file error_context.hpp.

Referenced by clear_args(), er_vsprintf(), and swap().

int cuberr::er_message::severity

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