22 errorString = this->
type() +
": " + this->
stream.str();
26 return errorString.c_str();
30 return "BaseException";
This class represents the base class of all exception classes.
BaseException()
Creates a base exception without a message.
virtual const char * what() const NOEXCEPT override
Retrieves the message associated with this exception.
virtual std::string additionalInfo() const
Returns additional information about the exception.
virtual ~BaseException()
Declare a destructor to counter the "looser throw specificator" error.
virtual std::string type() const
Returns the type of the exception.