error_context.h File Reference

#include "rutz/fstring.h"
#include "rutz/staticstack.h"

Include dependency graph for error_context.h:

This graph shows which files directly or indirectly include this file:

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.


Detailed Description

Definition in file error_context.h.


Define Documentation

#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.


The software described here is Copyright (c) 1998-2005, Rob Peters.
This page was generated Wed Dec 3 06:51:53 2008 by Doxygen version 1.5.5.