Simbody
Public Member Functions

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

#include <Exception.h>

Inheritance diagram for SimTK::Exception::ErrorCheck:

List of all members.

Public Member Functions

 ErrorCheck (const char *fn, int ln, const char *assertion, const char *whereChecked, const char *fmt...)
virtual ~ErrorCheck () throw ()

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 () [inline, virtual]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines