| MATLAB Compiler | ![]() |
mwException(const char* msg)
Construct new mwException with specified error message.
C++ syntax
#include "mclcppclass.h" try { throw mwException("This is an error"); } catch (const mwException& e) { std::cout << e.what() << std::endl;// Displays "This is // an error" to // standard out. }
Arguments
Return value
Description
Use this constructor to create an mwException with a specified error message.
| mwException() | mwException(const mwException& e) | ![]() |
© 1994-2005 The MathWorks, Inc.