#include <iostream>
#include <string>
#include <algorithm>
#include <exception>
#include <vector>
#include <cerrno>
#include "asserts.h"
#include "types.h"
Include dependency graph for error.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Defines | |
#define | ERROR_INSTANCE(s) error_instance((s), __FILE__, __LINE__) |
#define | err_unknown INTERNAL_ERROR(0,"An unknown error has occured") |
#define | err_nomem ERROR(ENOMEM,"Out of memory") |
#define | ERROR(e, s) error(e,ERROR_INSTANCE((s)), false) |
#define | INTERNAL_ERROR(e, s) error(e,ERROR_INSTANCE(s), true) |
#define | TRY(code, es) |
#define | TRY_nomem(code) |
#define | TRY_instead(code, es) |
#define | TRY_log(code, es) |
Functions | |
std::ostream & | operator<< (std::ostream &a_out, const error &a_e) |
const char * | get_error_str (const int a_err) |
|
Definition at line 116 of file error.h. Referenced by archive_manager::archive(), vault_manager::select(), error::str(), table_cell_table::table_cell_table(), and test8(). |
|
|
|
|
|
|
Value: try { \ code; \ } \ catch(error e) { \ e.clear_stack(); \ e.push_back(ERROR_INSTANCE(es)); \ throw(e); \ } \ catch(...) { \ if (errno == ENOMEM) { \ throw(err_nomem); \ } \ error e = err_unknown; \ \ e.push_back(es); \ throw(e); \ } Definition at line 158 of file error.h. Referenced by configuration_manager::check(), job_parser::parse_include(), global_parser::parse_include(), global_parser::parse_io_poll_interval(), global_parser::parse_link_catalog_dir(), global_parser::parse_log_dir(), global_parser::parse_rsync_local_path(), global_parser::parse_rsync_parallel(), and global_parser::parse_vault(). |
|
Value: try { \ code; \ } \ catch(error e) { \ e.clear_stack(); \ e.push_back(ERROR_INSTANCE(es)); \ logger.write(e.str()); \ } \ catch(...) { \ if (errno == ENOMEM) { \ throw(err_nomem); \ } \ error e = err_unknown; \ \ e.push_back(es); \ logger.write(e.str()); \ } Definition at line 177 of file error.h. Referenced by catalog_manager::catalog(). |
|
|
Definition at line 389 of file error.cc. Referenced by global_parser::parse_vault(), and error::push_back(). |
|
Definition at line 384 of file error.cc. References error::write(). Here is the call graph for this function: |