error.cc File Reference

#include "config.h"
#include <cerrno>
#include <cstring>
#include <cstdio>
#include "asserts.h"
#include "types.h"
#include "error.h"
Include dependency graph for error.cc:

Go to the source code of this file.

Defines

#define internal_TRY_nomem(code)

Functions

std::ostream & operator<< (std::ostream &a_out, const error &a_e)
const char * get_error_str (const int a_err)

Define Documentation

#define internal_TRY_nomem ( code   ) 
Value:
try { \
                code; \
        } \
        catch(...) { \
                if (errno == 12) \
                        std::cerr << err_nomem; \
                else \
                        std::cerr << err_unknown; \
        }

Definition at line 16 of file error.cc.

Referenced by error_instance::clear(), error::push_back(), and error_instance::set().


Function Documentation

const char* get_error_str ( const int  a_err  ) 

Definition at line 389 of file error.cc.

Referenced by global_parser::parse_vault(), and error::push_back().

std::ostream& operator<< ( std::ostream &  a_out,
const error a_e 
)

Definition at line 384 of file error.cc.

References error::write().

Here is the call graph for this function:

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Thu Sep 30 14:08:01 2010 for rvm by  doxygen 1.6.1