Compartilhar via


CFileException::OsErrorToException

Returns an enumerator that corresponds to a given lOsError value. If the error code is unknown, then the function returns CFileException::generic.

static int PASCAL OsErrorToException( 
   LONG lOsError  
);

Parameters

  • lOsError
    An operating-system-specific error code.

Return Value

Enumerated value that corresponds to a given operating-system error value.

Example

ASSERT(CFileException::OsErrorToException(ERROR_ACCESS_DENIED) == 
   CFileException::accessDenied);

Requirements

Header: afx.h

See Also

Reference

CFileException Class

Hierarchy Chart

CFileException::ErrnoToException