XLL+ Class Library (6.3)

CXllApp::ConvertTypeToError

Translates exception types to standard Excel error values

static bool ConvertTypeToError(
   const XlExceptionTranslation* translations,
   CXlOper& xloResult,
   const CXlRuntimeException& ex
);

Parameters

translations

An array of translation elements, each of which will translate an error of a particular type to a chosen Excel error value. Each element of the array should be defined using the XLEXCEPTION_TRANSLATION macro. The array must end with an empty element, XLEXCEPTION_TRANSLATION_END.

xloResult

This value will be set to contain the result which will be displayed in Excel.

ex

A reference to the exception which was thrown and caught, and which is to be represented in xloResult.

Remarks

The macros XLEXCEPTION_TRANSLATION and XLEXCEPTION_TRANSLATION_END should be used to build the translations argument.

See Overriding exception-handling behavior in the User Guide for more information about this method.

Requirements

Header: xllplus.h

See Also

CXllApp Class | CXllApp Methods | CXllApp::DisplayException | Overriding exception-handling behavior