XLL+ Class Library (6.3)

CXllApp::ClrExceptionToText

Converts a CLR Exception to an error message.

static CString ClrExceptionToText(
   System::Exception^ ex
);

Parameters

ex

A handle to the CLR System::Exception object which was thrown during the execution of the add-in function.

Return Value

A string containing a summary of the error, formed by taking ex->Message and replacing carriage returns and line feeds with spaces.

Remarks

This function is called within the macro XLP_CATCH_CLR_EXCEPTIONS, in CLR builds only.

Availability

The function is available only under CLR builds.

Requirements

Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods