#include <error.h>
Public Types | |
typedef std::vector < error_instance > | type |
Public Member Functions | |
error (const int a_errno) | |
error (const int a_errno, const error_instance &a_e, const bool a_internal=false) | |
error (const error &a_e) | |
void | clear (void) |
void | clear_stack (void) |
void | internal (bool a_i) |
const bool | internal (void) const |
void | num (int a_i) |
int | num (void) const |
void | push_back (const error_instance &a_e) |
void | push_back (const error &a_e) |
void | push_back (const std::string &a_str) |
void | assign (const error &a_e) |
error & | operator= (const error &a_e) |
std::ostream & | write (std::ostream &a_out, const std::string a_prefix="") const |
const std::string | str (const std::string a_prefix="") const |
Private Attributes | |
int | m_errno |
bool | m_internal |
An error class.
Definition at line 72 of file error.h.
typedef std::vector<error_instance> error::type |
error::error | ( | const int | a_errno | ) |
error::error | ( | const int | a_errno, | |
const error_instance & | a_e, | |||
const bool | a_internal = false | |||
) |
Definition at line 166 of file error.cc.
References clear(), num(), and push_back().
error::error | ( | const error & | a_e | ) |
void error::assign | ( | const error & | a_e | ) |
Definition at line 251 of file error.cc.
References clear(), internal(), m_errno, m_internal, num(), and push_back().
Referenced by error(), and operator=().
void error::clear | ( | void | ) |
Definition at line 183 of file error.cc.
References clear_stack(), m_errno, and m_internal.
Referenced by assign(), clear_stack(), and error().
void error::clear_stack | ( | void | ) |
const bool error::internal | ( | void | ) | const |
Definition at line 200 of file error.cc.
References m_internal.
void error::internal | ( | bool | a_i | ) |
int error::num | ( | void | ) | const |
void error::num | ( | int | a_i | ) |
void error::push_back | ( | const std::string & | a_str | ) |
Definition at line 243 of file error.cc.
References ERROR_INSTANCE, internal_TRY_nomem, and push_back().
void error::push_back | ( | const error & | a_e | ) |
Definition at line 234 of file error.cc.
References push_back().
void error::push_back | ( | const error_instance & | a_e | ) |
Definition at line 215 of file error.cc.
References get_error_str().
Referenced by assign(), configuration_manager::check(), job::check(), error(), configuration_manager::init(), job_archiver::mf_parse_rsync_io(), mk_dirhier(), mk_relative_symlink(), job_parser::parse(), global_parser::parse(), job_parser::parse_include(), global_parser::parse_include(), global_parser::parse_include_job(), global_parser::parse_vault(), push_back(), rm_dir(), rm_file(), vault_manager::select(), test4(), test4a(), test5(), and test5a().
const std::string error::str | ( | const std::string | a_prefix = "" |
) | const |
Definition at line 304 of file error.cc.
References err_nomem, err_unknown, m_errno, and m_internal.
Referenced by vault_manager::delete_oldest_archive(), main(), job_archiver::start(), and vault_manager::usage().
std::ostream & error::write | ( | std::ostream & | a_out, | |
const std::string | a_prefix = "" | |||
) | const |
Definition at line 271 of file error.cc.
References m_errno, and m_internal.
Referenced by operator<<().
int error::m_errno [private] |
bool error::m_internal [private] |