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 ErrorCheck:
Base

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

ErrorCheck ( const char *  fn,
int  ln,
const char *  assertion,
const char *  whereChecked,
const char *  fmt... 
) [inline]

References Base::setMessage().

virtual ~ErrorCheck (  )  throw () [inline, virtual]

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

Generated on Thu Aug 12 16:38:34 2010 for SimTKcore by  doxygen 1.6.1