CFileException::ErrnoToException

static int PASCAL ErrnoToException( int nErrno );

Return Value

Enumerated value that corresponds to a given run-time library error value.

Parameters

nErrno

An integer error code as defined in the run-time include file ERRNO.H.

Remarks

Converts a given run-time library error value to a CFileException enumerated error value. See CFileException::m_cause for a list of the possible enumerated values.

Example

//example for CFileException::ErrnoToException
#include <errno.h>
ASSERT( CFileException::ErrnoToException( EACCES ) == 
                  CFileException::accessDenied );

CFileException OverviewClass MembersHierarchy Chart

See Also   CFileException::OsErrorToException