An interface for the exception logging.
More...
#include <event_exception_logger.hpp>
An interface for the exception logging.
Exception logger should handle two actions:
- Installation of a logger into the SObjectizer Environment. The on_install() method could be reimplemented for this.
- Caught of an exception. The log_exception() method should be reimplemented for this.
- Examples
- so_5/exception_logger/main.cpp.
Definition at line 43 of file event_exception_logger.hpp.
◆ event_exception_logger_t() [1/3]
◆ event_exception_logger_t() [2/3]
◆ event_exception_logger_t() [3/3]
| so_5::event_exception_logger_t::event_exception_logger_t |
( |
| ) |
|
|
default |
◆ ~event_exception_logger_t()
| virtual so_5::event_exception_logger_t::~event_exception_logger_t |
( |
| ) |
|
|
virtualdefaultnoexcept |
◆ log_exception()
| virtual void so_5::event_exception_logger_t::log_exception |
( |
const std::exception & | event_exception, |
|
|
const coop_handle_t & | coop ) |
|
pure virtualnoexcept |
◆ on_install()
Installation hook.
A new exception logger should decide what happened with the old logger.
Default implementation simply erases the old logger.
- Attention
- This method is marked as noexcept in v.5.6.0
- Parameters
-
| previous_logger | Old logger. |
Definition at line 17 of file event_exception_logger.cpp.
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following files: