| MATLAB Compiler | ![]() |
mwException(const std::exception& e)
Create new mwException from existing std::exception.
C++ syntax
#include "mclcppclass.h" try { .... } catch (const std::exception& e) { throw mwException(e); // Rethrows same error. }
Arguments
e. std::exception to create copy of.
Return value
Description
Use this constructor to create a new mwException and initialize the error message with the error message from the given std::exception.
| mwException(const mwException& e) | const char *what() const throw() | ![]() |
© 1994-2005 The MathWorks, Inc.