GEOS  3.8.0dev
Public Member Functions | List of all members
ttmath::RuntimeError Class Reference

#include <ttmathtypes.h>

Inheritance diagram for ttmath::RuntimeError:
ttmath::ExceptionInfo

Public Member Functions

 RuntimeError (const char *f, int l)
 
std::string Where () const
 
- Public Member Functions inherited from ttmath::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)


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