|
|
@ -5,11 +5,11 @@ namespace storm { |
|
|
|
BaseException::BaseException() : exception() { |
|
|
|
// Intentionally left empty.
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
BaseException::BaseException(BaseException const& other) : exception(other), stream(other.stream.str()) { |
|
|
|
// Intentionally left empty.
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
BaseException::BaseException(char const* cstr) { |
|
|
|
stream << cstr; |
|
|
|
} |
|
|
@ -17,10 +17,21 @@ namespace storm { |
|
|
|
BaseException::~BaseException() { |
|
|
|
// Intentionally left empty.
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const char* BaseException::what() const NOEXCEPT { |
|
|
|
errorString = this->stream.str(); |
|
|
|
errorString = this->type() + ": " + this->stream.str(); |
|
|
|
if (!this->additionalInfo().empty()) { |
|
|
|
errorString += " " + this->additionalInfo(); |
|
|
|
} |
|
|
|
return errorString.c_str(); |
|
|
|
} |
|
|
|
|
|
|
|
std::string BaseException::type() const { |
|
|
|
return "BaseException"; |
|
|
|
} |
|
|
|
|
|
|
|
std::string BaseException::additionalInfo() const { |
|
|
|
return ""; |
|
|
|
} |
|
|
|
} |
|
|
|
} |