MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
ErrCode Class Reference
Inheritance diagram for ErrCode:
Collaboration diagram for ErrCode:

Public Member Functions

 ErrCode (const char *file, int line, const char *func, const std::string r=std::string(), int code=-1)
 
virtual ~ErrCode (void) throw ()
 
const char * what (void) const throw ()
 
- Public Member Functions inherited from MBDynErrBase
 MBDynErrBase (const char *file, int line, const char *func, const std::string r=std::string())
 
virtual ~MBDynErrBase (void) throw ()
 
void Set (const std::string &s)
 
const char * what (void) const throw ()
 

Private Attributes

std::string s
 

Detailed Description

Definition at line 44 of file testexcept.cc.

Constructor & Destructor Documentation

ErrCode::ErrCode ( const char *  file,
int  line,
const char *  func,
const std::string  r = std::string(),
int  code = -1 
)
inline

Definition at line 48 of file testexcept.cc.

References s, and MBDynErrBase::what().

50  std::stringstream ss;
51  ss << MBDynErrBase::what() << " code=" << code;
52  s = ss.str();
53  };
#define MBDYN_EXCEPT_ARGS_PASSTHRU
Definition: except.h:55
const char * what(void) const
Definition: except.cc:54
std::string s
Definition: testexcept.cc:46
MBDynErrBase(const char *file, int line, const char *func, const std::string r=std::string())
Definition: except.cc:37

Here is the call graph for this function:

virtual ErrCode::~ErrCode ( void  )
throw (
)
inlinevirtual

Definition at line 54 of file testexcept.cc.

54 {};

Member Function Documentation

const char* ErrCode::what ( void  ) const
throw (
)
inline

Definition at line 56 of file testexcept.cc.

References s.

56  {
57  return s.c_str();
58  };
std::string s
Definition: testexcept.cc:46

Member Data Documentation

std::string ErrCode::s
private

Definition at line 46 of file testexcept.cc.

Referenced by ErrCode(), and what().


The documentation for this class was generated from the following file: