All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
ttmath::RuntimeError Class Reference

#include <ttmathtypes.h>

Public Member Functions

 RuntimeError ()
 RuntimeError (const char *f, int l)
std::string Where () const
- Public Member Functions inherited from ttmath::ExceptionInfo
 ExceptionInfo ()
 ExceptionInfo (const char *f, int l)
std::string Where () const

Detailed Description

a small class used for reporting errors

in the library is used macro TTMATH_ASSERT which (if the condition in it is false) throw an exception of this type

if you compile with gcc you can get a small benefit from using method Where() (it returns std::string) with the name and the line of a file where the macro TTMATH_ASSERT was used)

Constructor & Destructor Documentation

ttmath::RuntimeError::RuntimeError ( )
ttmath::RuntimeError::RuntimeError ( const char *  f,
int  l 

Member Function Documentation

std::string ttmath::RuntimeError::Where ( ) const

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