thr Struct Reference

Structure determined for causing storing/printing error messages. More...

#include <error.hh>

List of all members.

Public Member Functions

 thr (ERR_type_t tt=ERR_UNKNOWN_TYPE, ERR_id_t i=ERR_UNKNOWN_ID)

Public Attributes

ERR_id_t c
ERR_type_t t


Detailed Description

Structure determined for causing storing/printing error messages.

This structure should be used as follows:

 terr << "My error mess" << "age" << thr(3,13565) 
where "My error message" is an example of error message sent into error_vector_t `terr', 3 is an example of so called error type (see ERR_type_t) and 13565 is an example of error ID.

Sending thr() to an instance of error_vector_t through an operator `<<' causes the end of assigning of a message. Message is then stored at the end of a list of error messages. Then 'error handling callback' is called (callback that can be set by error_vector_t::set_throw_callback()).


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

Reference Manual for Library, 2006 developed in ParaDiSe laboratory, Faculty of Informatics, Masaryk University