Previous Topic: CaException

Next Topic: CaException( const CaException &CRight)


CaException(bool bKey, LPCTSTR szMessage )

Constructs an exception object. The bKey argument determines whether szMessage is treated as a message key or as simple message text.

Note: This constructor can only be used for simple text or message keys that do not take optional arguments. If the message key is invalid then the object is created with a message-key error message.

Owning Class

CaException

Arguments

bool bKey-if true, szMessage is a message key; if false, plain text

LPCTSTR szMessage-either a message key or message text

Return Value

None

Example

CaException ex(false, “message text”);

More information: