CFileException::ThrowOsError

static void PASCAL ThrowOsError( LONG lOsError, LPCTSTR lpszFileName = NULL );

Parameters

lOsError

An operating-system-specific error code.

lpszFileName

A pointer to the string containing the name of the file that caused the exception, if available.

Remarks

Throws a CFileException corresponding to a given lOsError value. If the error code is unknown, then the function throws an exception coded as CFileException::generic.

Example

//example for CFileException::ThrowOsError
CFileException::ThrowOsError( 5 );  // "access denied"

CFileException OverviewClass MembersHierarchy Chart

See Also   CFileException::ThrowErrno