#include "rutz/fstring.h"
#include "rutz/staticstack.h"
Go to the source code of this file.
Namespaces | |
namespace | rutz |
Classes | |
class | rutz::error_context |
Don't use this class directly; use the GVX_ERR_CONTEXT() macro instead. More... | |
class | rutz::error_context_entry |
Don't use this class directly; use the GVX_ERR_CONTEXT() macro instead. More... | |
Defines | |
#define | GVX_ERR_CONTEXT(msg) rutz::error_context_entry e_c_object_(msg) |
Give some contextual information that can be used if an error message is needed. |
Definition in file error_context.h.
#define GVX_ERR_CONTEXT | ( | msg | ) | rutz::error_context_entry e_c_object_(msg) |
Give some contextual information that can be used if an error message is needed.
The GVX_ERR_CONTEXT() calls form a last-in/last-out stack that describes the call context at any moment, in particular at the moment that an error might occur. If an error does occur, we can capture the call context and report it to the user, (hopefully) making it easier to understand the error and debug the problem.
Definition at line 132 of file error_context.h.