| MATLAB Compiler | ![]() |
mwException(const mwException& e)
Copy constructor for mwException class.
C++ syntax
#include "mclcppclass.h" try { throw mwException("This is an error"); } catch (const mwException& e) { throw mwException(e); // Rethrows same error. }
Arguments
e. mwException to create copy of.
Return value
Description
Use this constructor to create a copy of an mwException. The copy will have the same error message as the original.
| mwException(const char* msg) | mwException(const std::exception& e) | ![]() |
© 1994-2005 The MathWorks, Inc.