23.07.2012 Views

MATLAB C++ Math Library Reference

MATLAB C++ Math Library Reference

MATLAB C++ Math Library Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

0mwDisplayException<br />

Purpose Display the given exception<br />

<strong>C++</strong> Prototype void mwDisplayException(const mwException &ex);<br />

Arguments ex<br />

Exception<br />

mwDisplayException<br />

Description mwDisplayException() sends an exception to the output function set by the<br />

most recent call to mwSetExceptionMsgHandler(). If<br />

mwSetExceptionMsgHandler() has never been called, mwDisplayException()<br />

uses the default error message handling function or the output function<br />

specified by a call to mwSetErrorMsgHandler().<br />

Example // try-block<br />

try<br />

{<br />

eig(A);<br />

}<br />

// catch-block<br />

catch(mwException &ex)<br />

{<br />

mwDisplayException(ex);<br />

}<br />

See Also mwGetErrorMsgHandler, mwGetExceptionMsgHandler, mwSetErrorMsgHandler,<br />

mwSetExceptionMsgHandler<br />

410

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!