Former-commit-id: f620e5ed7d
f620e5ed7d
@ -13,6 +13,10 @@ namespace storm {
BaseException::BaseException(char const* cstr) {
stream << cstr;
}
BaseException::~BaseException() {
// Intentionally left empty.
const char* BaseException::what() const throw() {
std::string errorString = this->stream.str();
@ -29,6 +29,11 @@ namespace storm {
*/
BaseException(char const* cstr);
/*!
* Declare a destructor to counter the "looser throw specificator" error
virtual ~BaseException() throw();
* Retrieves the message associated with this exception.
*
@ -13,6 +13,8 @@ exception_name(char const* cstr) : BaseException(cstr) { \
} \
exception_name(exception_name const& cp) : BaseException(cp) { \
~exception_name() throw() { \
template<typename T> \
exception_name& operator<<(T const& var) { \
this->stream << var; \