Function CSPException::SetMsg()
Description:
Sets the text of the message before the exception is thrown.
 |
Prototype:
virtual void SetMsg(const CSPString strMessage);
Arguments:
- const CSPString strMessage [IN]
The exception message.
Return value:
No return value (void).
Examples:
int a, b; ...
if( a == 0 ) { CSPException e; e.SetMsg( "Division by zero" ); throw e; } else { b = 10 / a; }
See also:
member function SetCode()
|
|