Simbody  3.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SimTK::Exception::Assert Class Reference

This is for reporting internally-detected bugs only, not problems induced by confused users (that is, it is for confused developers instead). More...

#include <Exception.h>

+ Inheritance diagram for SimTK::Exception::Assert:

Public Member Functions

 Assert (const char *fn, int ln, const char *assertion, const char *fmt...)
 
virtual ~Assert () 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 internally-detected bugs only, not problems induced by confused users (that is, it is for confused developers instead).

The exception message accepts printf-style arguments and should contain lots of useful information for developers. Don't throw this exception directly; use one of the family of SimTK_ASSERT and SimTK_ASSERT_ALWAYS macros.

Constructor & Destructor Documentation

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

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