rvm 1.08
Public Types | Public Member Functions | Private Attributes

error Class Reference

An error class. More...

#include <error.h>

List of all members.

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)
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(), 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 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:

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

Here is the call graph for this function:

void error::clear_stack ( void  )

Definition at line 190 of file error.cc.

References clear().

Referenced by clear().

Here is the call graph for this function:

const bool error::internal ( void  ) const

Definition at line 200 of file error.cc.

References m_internal.

void error::internal ( bool  a_i)

Definition at line 195 of file error.cc.

References m_internal.

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

void error::num ( int  a_i)

Definition at line 205 of file error.cc.

References m_errno.

Referenced by archive_manager::archive(), assign(), test(), 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().

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:

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::push_back ( const error_instance a_e)
const std::string error::str ( const std::string  a_prefix = "") const
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<<().


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:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines