error Class Reference

An error class. More...

#include <error.h>

List of all members.

Public Types

typedef std::vector< error_instancetype

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)
erroroperator= (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


Detailed Description

An error class.

Definition at line 72 of file error.h.


Member Typedef Documentation

typedef std::vector<error_instance> error::type

Definition at line 75 of file error.h.


Constructor & Destructor Documentation

error::error ( const int  a_errno  ) 

Definition at line 160 of file error.cc.

References clear(), and num().

Here is the call graph for this function:

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(), internal(), num(), and push_back().

Here is the call graph for this function:

error::error ( const error a_e  ) 

Definition at line 178 of file error.cc.

References assign().

Here is the call graph for this function:


Member Function Documentation

void error::clear ( void   ) 

Definition at line 183 of file error.cc.

References clear_stack(), m_errno, and m_internal.

Referenced by assign(), and error().

Here is the call graph for this function:

void error::clear_stack ( void   ) 

Definition at line 190 of file error.cc.

Referenced by clear().

void error::internal ( bool  a_i  ) 

Definition at line 195 of file error.cc.

References m_internal.

Referenced by assign(), test2(), test3(), test4(), and test5().

const bool error::internal ( void   )  const

Definition at line 200 of file error.cc.

References m_internal.

Referenced by error().

void error::num ( int  a_i  ) 

Definition at line 205 of file error.cc.

References m_errno.

Referenced by archive_manager::archive(), assign(), test2(), test3(), test4(), test5(), and test8().

int error::num ( void   )  const

Definition at line 210 of file error.cc.

References m_errno.

Referenced by error().

void error::push_back ( const error_instance a_e  ) 

Definition at line 215 of file error.cc.

References get_error_str().

Referenced by assign(), 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().

Here is the call graph for this function:

void error::push_back ( const error a_e  ) 

Definition at line 234 of file error.cc.

References push_back().

Here is the call graph for this function:

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().

Here is the call graph for this function:

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=().

Here is the call graph for this function:

error & error::operator= ( const error a_e  ) 

Definition at line 263 of file error.cc.

References assign().

Here is the call graph for this function:

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<<().

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().


Member Data Documentation

int error::m_errno [private]

Definition at line 106 of file error.h.

Referenced by assign(), clear(), num(), str(), and write().

bool error::m_internal [private]

Definition at line 107 of file error.h.

Referenced by assign(), clear(), internal(), str(), and write().


The documentation for this class was generated from the following files:
Generated on Tue Jul 1 12:11:23 2008 for rvm by  doxygen 1.5.1