User`s guide
const char *what() const throw()
Purpose Return error message contained in this exception
C++
Syntax
#include "mclcppclass. h"
try
{
...
}
catch (const std::exception& e)
{
std::cout << e.what() << std::endl; // Displays error
// message to
// standard out.
}
Arguments None
Return
Value
A p ointer to a NUL L-terminated character buffer containing the error
message.
Description Use this m ethod to retrieve the error message from an mwException.
C-26