Simbody  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
SimTK::Exception::ErrorCheck Class Reference

This is for reporting errors occurring during execution of SimTK core methods, beyond those caused by mere improper API arguments, which should be reported with APIArgcheck instead. More...

+ Inheritance diagram for SimTK::Exception::ErrorCheck:

Public Member Functions

 ErrorCheck (const char *fn, int ln, const char *assertion, const char *whereChecked, const char *fmt...)
 
virtual ~ErrorCheck () throw ()
 
- Public Member Functions inherited from SimTK::Exception::Base
 Base (const char *fn="<UNKNOWN>", int ln=0)
 
virtual ~Base () throw ()
 
const std::string & getMessage () const
 
const std::string & getMessageText () const
 
const char * what () const throw ()
 

Additional Inherited Members

- Protected Member Functions inherited from SimTK::Exception::Base
void setMessage (const std::string &msgin)
 

Detailed Description

This is for reporting errors occurring during execution of SimTK core methods, beyond those caused by mere improper API arguments, which should be reported with APIArgcheck instead.

Nor is this intended for detection of internal bugs; use Assert instead for that. It is expected that this error resulted from something the API user did, so the messages should be suitable for reporting to that programmer. The exception message accepts printf-style arguments and should contain lots of useful information for the API user. Don't throw this exception directly; use one of the family SimTK_ERRCHK and SimTK_ERRCHK_ALWAYS macros.

Constructor & Destructor Documentation

SimTK::Exception::ErrorCheck::ErrorCheck ( const char *  fn,
int  ln,
const char *  assertion,
const char *  whereChecked,
const char *  fmt... 
)
inline
virtual SimTK::Exception::ErrorCheck::~ErrorCheck ( )
throw (
)
inlinevirtual

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