C++ Math Library Reference | ![]() ![]() |
Set an alternate exception handling function
C++ Prototype
void mwSetExceptionMsgHandler(mwExceptionMsgFunc f);
Arguments
mwExceptionMsgFunc f
Pointer to an exception handling function that takes an mwException
as an argument and returns void
.
typedef void (*
mwExceptionMsgFunc)(const mwException &);
Description
The default exception handling function simply prints the exception using the error handling routine. If this behavior is inappropriate for your application, the mwSetExceptionMsgHandler function allows you to set an alternate exception handling function.
See Also
mwDisplayException
, mwGetErrorMsgHandler
, mwGetExceptionMsgHandler
, mwSetErrorMsgHandler
![]() | mwSetErrorMsgHandler | mwSetLibraryAllocFcns | ![]() |