.. index:: pair: class; gpr::io::ErrorManager .. _doxid-classgpr_1_1io_1_1_error_manager: class gpr::io::ErrorManager =========================== .. toctree:: :hidden: Overview ~~~~~~~~ Responsible for errors handling. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class ErrorManager { public: // construction :target:`ErrorManager`(); :target:`~ErrorManager`(); // methods template :ref:`ErrorManager`& :ref:`operator<<`(const T& data); static void :ref:`assertMsg`(const bool expression, const std::string& message, const char* file, const char* func, const int line); }; .. _details-classgpr_1_1io_1_1_error_manager: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Responsible for errors handling. Methods ------- .. index:: pair: function; operator<< .. _doxid-classgpr_1_1io_1_1_error_manager_1adbd7292980fce4ccdd3970b1245724bd: .. ref-code-block:: cpp :class: doxyrest-title-code-block template :ref:`ErrorManager`& operator<<(const T& data) Writes data to the log. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - data - Data. .. rubric:: Returns: Reference to *this*. .. index:: pair: function; assertMsg .. _doxid-classgpr_1_1io_1_1_error_manager_1af6e4bc99406cb57faf4a266f11af910c: .. ref-code-block:: cpp :class: doxyrest-title-code-block static void assertMsg(const bool expression, const std::string& message, const char* file, const char* func, const int line) Prints error message and terminates the program. .. rubric:: Parameters: .. list-table:: :widths: 20 80 * - expression - Condition that must hold. * - message - Error message written when ``expression`` is false. * - file - Source file containing the assertion. * - func - Function name. * - line - Line number.