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 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::assign const error a_e  ) 
 

Definition at line 242 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:

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

const bool error::internal void   )  const
 

Definition at line 200 of file error.cc.

References m_internal.

Referenced by error().

void error::internal bool  a_i  ) 
 

Definition at line 195 of file error.cc.

References m_internal.

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

int error::num void   )  const
 

Definition at line 210 of file error.cc.

References m_errno.

Referenced by error().

void error::num int  a_i  ) 
 

Definition at line 205 of file error.cc.

References m_errno.

Referenced by assign(), test2(), test3(), and test8().

error & error::operator= const error a_e  ) 
 

Definition at line 254 of file error.cc.

References assign().

Here is the call graph for this function:

void error::push_back const std::string &  a_str  ) 
 

Definition at line 234 of file error.cc.

References ERROR_INSTANCE, internal_TRY_nomem, and push_back().

Here is the call graph for this function:

void error::push_back const error_instance a_e  ) 
 

Definition at line 215 of file error.cc.

References get_error_str().

Referenced by assign(), error(), job_archiver::mf_parse_rsync_io(), push_back(), vault_manager::select(), and test6().

Here is the call graph for this function:

const std::string error::str const std::string  a_prefix = ""  )  const
 

Definition at line 295 of file error.cc.

References err_nomem, err_unknown, m_errno, and m_internal.

Referenced by job_archiver::start().

std::ostream & error::write std::ostream &  a_out,
const std::string  a_prefix = ""
const
 

Definition at line 262 of file error.cc.

References m_errno, and m_internal.

Referenced by operator<<().


Member Data Documentation

int error::m_errno [private]
 

Definition at line 105 of file error.h.

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

bool error::m_internal [private]
 

Definition at line 106 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 Mon Jul 12 12:09:32 2004 for rvm by doxygen 1.3.6