23 #ifndef IPOEXCEPTION_H
24 #define IPOEXCEPTION_H
36 #define IPOE(message) IPOException( message, __FILE__, __LINE__ )
42 #define RETHROW(function) \
44 void operator()( std::string s, char const * const fileName, \
45 int const lineNumber ){ \
46 std::cerr << "Exception caught and rethrown in " \
47 << s << ", " << fileName << ":" << lineNumber \
51 rethrow_message( function, __FILE__, __LINE__ ); \
69 char const *
const fileName = 0,
int const lineNumber = 0 )
72 std::cerr <<
"IPO exception in " << fileName <<
":" << lineNumber
73 <<
" " << exceptionMessage << std::endl;
79 const std::string &
what()
const {
IPOException(const std::string &exceptionMessage, char const *const fileName=0, int const lineNumber=0)
Create a new object with the given message to indicate what happened.
const std::string message
A string to hold the exception’s message.
const std::string & what() const
Returns the exception’s message.
Objects of this class are used to store information about an exception generated by ipo objects and f...
This namespace holds all the interior-point optimisation classes.