Product Documentation

c-treeDB API for C++ - Developers Guide

Previous Topic

Next Topic

CTException::GetErrorMsg

Syntax

pTEXT GetErrorMsg( ) const

Parameters

This method has no parameters.

Description

Returns a CTString 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

{

pSession->Logon("FAIRCOMS", "ADMIN", "ADMIN");

printf("\n\nSession Logon succesful!");

}

catch(CTException& err)

{

printf("\n\n%d %s",err.GetErrorCode(), err.GetErrorMsg());

}


See also

GetErrorCode(), GetSourceFile(), GetLineNbr()

TOCIndex