XLL+ Class Library (7.0)


Translates exception types to standard Excel error values

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



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.


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


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


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.


Header: xllplus.h

See Also

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