Simbody
|
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...
#include <Exception.h>
Public Member Functions | |
ErrorCheck (const char *fn, int ln, const char *assertion, const char *whereChecked, const char *fmt...) | |
virtual | ~ErrorCheck () throw () |
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.
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 () [inline, virtual] |