26 #define stator_throw() \ 27 throw stator::Exception(__LINE__,__FILE__, __func__) 74 Exception(
int line,
const char* file,
const char* funcname)
throw() :
75 message_(), messageStr_() {
77 message_ <<
"Exception thrown in [" << funcname <<
"] (" << file <<
78 ":" << line <<
")" << std::endl;
109 const char*
what()
const throw() {
110 messageStr_ = message_.str();
111 return messageStr_.c_str();
116 std::ostringstream message_;
118 mutable std::string messageStr_;
Exception & operator<<(const T &m)
The stream operator engine for the class.
An exception class that also appears to function like an ostream object.
detail::C_wrap< stator::constant_ratio::e >::type e
A symbolic/compile-time rational approximation of .
Exception(int line, const char *file, const char *funcname)
Constructor called by the stator_throw() macro.
const char * what() const
Get the stored message from the class.
Exception(const Exception &e)
Copy constructor.
The stator library namespace.