rvm  1.11
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Functions
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.

Macros

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

Macro Definition Documentation

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

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: