CTException.GetErrorMsg
Syntax
String GetErrorMsg( )
Parameters
This method has no parameters.
Description
Returns a String object with the last error message. If the error message is not available, GetErrorMsg() returns an empty string.
Return
GetErrorMsg() returns the last error message.
Example
try
{
aSession.Logon("FAIRCOMS", "ADMIN", "ADMIN");
Console.Write("\n\nSession Logon succesful!");
}
catch(CTException err)
{
Console.Write("\n\n{0} {1}",err.GetErrorCode(), err.GetErrorMsg());
}
See Also
GetErrorCode(), GetLineNbr(), GetSourceFile()