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.
 
virtual const char * what() const noexcept override
Retrieves the message associated with this exception.
 
BaseException()
Creates a base exception without a message.
 
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.