| MATLAB Compiler | ![]() |
const char *what() const throw()
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 the error // message to // standard out. }
Arguments
Return value
A pointer to a NULL-terminated character buffer containing the error message.
Description
Use this method to retrieve the error message from an mwException.
| mwException(const std::exception& e) | mwException& operator=(const mwException& e) | ![]() |
© 1994-2005 The MathWorks, Inc.