C++ Math Library Reference | ![]() ![]() |
Register an error handling routine with the MATLAB C++ Math Library
C++ Prototype
void mwSetErrorMsgHandler(mwErrorFunc f);
Arguments
mwErrorFunc f
A pointer to an error handling routine that takes a char *
and an mwBool
as its arguments and returns void
.
typedef void (*
mwErrorFunc)(const char *, mwBool);
Description
If you want to separate error messages from ``ordinary'' output, call the function mwSetErrorMsgHandler()
to replace the default handler. mwSetErrorMsgHandler
sets the error handling routine. The error handler is responsible for handling all error message output.
See Also
mwDisplayException
, mwGetErrorMsgHandler
, mwGetExceptionMsgHandler
, mwSetExceptionMsgHandler
![]() | mwGetPrintHandler | mwSetExceptionMsgHandler | ![]() |