CFileException::m_cause

Remarks

Contains values defined by a CFileException enumerated type. This data member is a public variable of type int. The enumerators and their meanings are as follows:

Note   These CFileException cause enumerators are distinct from the CArchiveException cause enumerators.

Example

//example for CFileException::m_cause
extern char* pFileName;
TRY
{
   CFile f( pFileName, CFile::modeCreate | CFile::modeWrite );
}
CATCH( CFileException, e )
{
    if( e->m_cause == CFileException::fileNotFound )
        printf( "ERROR: File not found\n");
}
END_CATCH

CFileException OverviewClass MembersHierarchy Chart