25 return "Out of memory!";
33 std::stringstream stream;
34 stream <<
"Exception: " <<
_message << std::endl;
37 stream <<
"Source location: " <<
location << std::endl;
47 std::stringstream stream;
48 stream <<
"System exception: " <<
_message << std::endl;
53 stream <<
"Source location: " <<
location << std::endl;
virtual std::string string() const
Get string from the current exception.
const char * what() const noexcept override
Get string identifying exception.
SourceLocation _location
Exception location.
std::string _message
Exception message.
std::string _cache
Cached exception string.
const SourceLocation & location() const noexcept
Get exception location.
std::string string() const
Get the string from the current source location.
int _system_error
System error code.
std::string _system_message
System error message.
std::string string() const override
Get string from the current system exception.
C++ Common project definitions.