MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
ErrIndexOutOfRange Class Reference

#include <except.h>

Inheritance diagram for ErrIndexOutOfRange:
Collaboration diagram for ErrIndexOutOfRange:

Public Member Functions

 ErrIndexOutOfRange (int idx, int imin, int imax, const char *file, int line, const char *func, const std::string r=std::string())
 
- Public Member Functions inherited from ErrOutOfRange
 ErrOutOfRange (const char *file, int line, const char *func, const std::string r=std::string())
 
- 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 ()
 

Protected Member Functions

 ErrIndexOutOfRange (const char *idx_type, int idx, int imin, int imax, const char *file, int line, const char *func, const std::string r=std::string())
 
void WriteMsg (const char *idx_type, int idx, int imin, int imax, const char *file, int line, const char *func, const std::string r=std::string())
 

Detailed Description

Definition at line 96 of file except.h.

Constructor & Destructor Documentation

ErrIndexOutOfRange::ErrIndexOutOfRange ( const char *  idx_type,
int  idx,
int  imin,
int  imax,
const char *  file,
int  line,
const char *  func,
const std::string  r = std::string() 
)
protected

Definition at line 71 of file except.cc.

References MBDYN_EXCEPT_ARGS, and WriteMsg().

73 {
74  WriteMsg(idx_type, idx, imin, imax, MBDYN_EXCEPT_ARGS);
75 }
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
ErrOutOfRange(const char *file, int line, const char *func, const std::string r=std::string())
Definition: except.h:94
#define MBDYN_EXCEPT_ARGS_PASSTHRU
Definition: except.h:55
void WriteMsg(const char *idx_type, int idx, int imin, int imax, const char *file, int line, const char *func, const std::string r=std::string())
Definition: except.cc:60

Here is the call graph for this function:

ErrIndexOutOfRange::ErrIndexOutOfRange ( int  idx,
int  imin,
int  imax,
const char *  file,
int  line,
const char *  func,
const std::string  r = std::string() 
)

Definition at line 77 of file except.cc.

References MBDYN_EXCEPT_ARGS, and WriteMsg().

79 {
80  WriteMsg("", idx, imin, imax, MBDYN_EXCEPT_ARGS);
81 }
#define MBDYN_EXCEPT_ARGS
Definition: except.h:63
ErrOutOfRange(const char *file, int line, const char *func, const std::string r=std::string())
Definition: except.h:94
#define MBDYN_EXCEPT_ARGS_PASSTHRU
Definition: except.h:55
void WriteMsg(const char *idx_type, int idx, int imin, int imax, const char *file, int line, const char *func, const std::string r=std::string())
Definition: except.cc:60

Here is the call graph for this function:

Member Function Documentation

void ErrIndexOutOfRange::WriteMsg ( const char *  idx_type,
int  idx,
int  imin,
int  imax,
const char *  file,
int  line,
const char *  func,
const std::string  r = std::string() 
)
protected

Definition at line 60 of file except.cc.

References file, func(), and MBDynErrBase::Set().

Referenced by ErrIndexOutOfRange().

61 {
62  std::stringstream ss;
63  ss << "[" << file << ":" << line << ",func=" << func << "]";
64  if (!r.empty()) {
65  ss << " (" << r << ")";
66  }
67  ss << ": " << idx_type << "index=" << idx << " out of range (" << imin << ":" << imax << ")";
68  Set(ss.str());
69 }
void Set(const std::string &s)
Definition: except.cc:48
void func(const T &u, const T &v, const T &w, doublereal e, T &f)
static char * file
Definition: ann_in.c:101

Here is the call graph for this function:


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