CUBRID Engine
latest
|
#include <error_context.hpp>
Public Member Functions | |
context (bool automatic_registration=false, bool logging=false) | |
~context () | |
er_message & | get_current_error_level (void) |
void | register_thread_local (void) |
void | deregister_thread_local (void) |
void | clear_current_error_level (void) |
void | push_error_stack (void) |
void | pop_error_stack (er_message &popped) |
void | pop_error_stack_and_destroy (void) |
bool | has_error_stack (void) |
const bool & | get_logging (void) |
Static Public Member Functions | |
static context & | get_thread_local_context (void) |
static er_message & | get_thread_local_error (void) |
Private Member Functions | |
void | clear_all_levels (void) |
void | clear_stack (void) |
Private Attributes | |
er_message | m_base_level |
std::stack< er_message > | m_stack |
bool | m_automatic_registration |
bool | m_logging |
bool | m_destroyed |
Definition at line 76 of file error_context.hpp.
Definition at line 208 of file error_context.cpp.
References register_thread_local().
cuberr::context::~context | ( | void | ) |
Definition at line 221 of file error_context.cpp.
References assert, deregister_thread_local(), m_automatic_registration, and m_destroyed.
|
private |
Definition at line 315 of file error_context.cpp.
References cuberr::er_message::clear_error(), cuberr::er_message::clear_message_area(), clear_stack(), and m_base_level.
Referenced by deregister_thread_local().
void cuberr::context::clear_current_error_level | ( | void | ) |
Definition at line 270 of file error_context.cpp.
References cuberr::er_message::clear_error(), and get_current_error_level().
|
private |
Definition at line 323 of file error_context.cpp.
References m_stack.
Referenced by clear_all_levels().
void cuberr::context::deregister_thread_local | ( | void | ) |
Definition at line 255 of file error_context.cpp.
References assert, clear_all_levels(), m_stack, and NULL.
Referenced by er_final(), cubthread::finalize(), cubthread::entry_manager::retire_context(), and ~context().
er_message & cuberr::context::get_current_error_level | ( | void | ) |
Definition at line 235 of file error_context.cpp.
References m_base_level, and m_stack.
Referenced by clear_current_error_level(), er_set_internal(), er_stack_push_if_exists(), and get_thread_local_error().
Definition at line 309 of file error_context.cpp.
References m_logging.
Referenced by er_stack_pop_and_keep_error().
|
static |
Definition at line 330 of file error_context.cpp.
References assert, cubthread::get_entry(), cubthread::entry::get_error_context(), cubthread::get_manager(), NULL, and cuberr::tl_Context_p.
Referenced by get_thread_local_error().
|
static |
Definition at line 348 of file error_context.cpp.
References get_current_error_level(), and get_thread_local_context().
Referenced by er_stack_pop_and_keep_error().
bool cuberr::context::has_error_stack | ( | void | ) |
Definition at line 303 of file error_context.cpp.
References m_stack.
Referenced by er_restore_last_error(), er_stack_clearall(), er_stack_pop_and_keep_error(), and er_stack_push_if_exists().
void cuberr::context::pop_error_stack | ( | er_message & | popped | ) |
Definition at line 282 of file error_context.cpp.
References assert, m_stack, and cuberr::er_message::swap().
Referenced by er_stack_pop_and_keep_error(), and pop_error_stack_and_destroy().
void cuberr::context::pop_error_stack_and_destroy | ( | void | ) |
Definition at line 294 of file error_context.cpp.
References m_logging, and pop_error_stack().
Referenced by er_set_internal().
void cuberr::context::push_error_stack | ( | void | ) |
Definition at line 276 of file error_context.cpp.
References m_logging, and m_stack.
Referenced by er_set_internal(), and er_stack_push_if_exists().
void cuberr::context::register_thread_local | ( | void | ) |
Definition at line 248 of file error_context.cpp.
Referenced by context(), cubthread::entry_manager::create_context(), er_init(), and cubthread::initialize().
|
private |
Definition at line 112 of file error_context.hpp.
Referenced by ~context().
|
private |
Definition at line 110 of file error_context.hpp.
Referenced by clear_all_levels(), and get_current_error_level().
|
private |
Definition at line 114 of file error_context.hpp.
Referenced by ~context().
|
private |
Definition at line 113 of file error_context.hpp.
Referenced by get_logging(), pop_error_stack_and_destroy(), and push_error_stack().
|
private |
Definition at line 111 of file error_context.hpp.
Referenced by clear_stack(), deregister_thread_local(), get_current_error_level(), has_error_stack(), pop_error_stack(), and push_error_stack().