CFileException::ErrnoToException

Converts a given run-time library error value to a CFileException enumerated error value.

static int PASCAL ErrnoToException(
   int nErrno 
);

Parameters

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

Return Value

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

Remarks

See CFileException::m_cause for a list of the possible enumerated values.

Example

ASSERT(CFileException::ErrnoToException(EACCES) == 
   CFileException::accessDenied);

Requirements

Header: afx.h

See Also

Concepts

CFileException Class

CFileException Members

Hierarchy Chart

CFileException::OsErrorToException