CFileException::OsErrorToException

static int PASCAL OsErrorToException( LONG lOsError );

Return Value

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

Parameters

lOsError

An operating-system-specific error code.

Remarks

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

Example

//example for CFileException::OsErrorToException
ASSERT( CFileException::OsErrorToException( 5 ) == 
                  CFileException::accessDenied );

CFileException OverviewClass MembersHierarchy Chart

See Also   CFileException::ErrnoToException