This is for reporting problems detected by checking the caller's supplied arguments to a SimTK API method.
More...
This is for reporting problems detected by checking the caller's supplied arguments to a SimTK API method.
Messages should be suitable for SimTK API users. This is not intended for detection of internal bugs where a SimTK developer passed bad arguments to some internal routine – use Assert instead for that. The exception message accepts printf-style arguments and should contain useful information for the API user. Don't throw this exception directly; use one of the family SimTK_APIARGCHECK and SimTK_APIARGCHECK_ALWAYS macros.