Previous Topic: HINT32 Execute(void)

Next Topic: CaException(bool bKey, LPCTSTR szMessage )


CaException

CaException provides keyed message generation and logging facilities. It uses the underlying CA Harvest SCM Error Message Handler to retrieve and/or log formatted message text passed into one of the constructors. Messages can be logged to the static ostream established with the CaHarvest::SetLog() function. The default constructor is declared private to ensure that a message is provided.

The Error Message Handler reads an input file that contains message format strings into a CaContainer. Each message in the file has a unique textual key, an error number, and a format string with an optional set of positional arguments. Message files can therefore be translated to other languages without affecting the code.

The CaException objects can be constructed with either a message key or with a literal text message depending on the constructor used.

Public Methods

More information: