|
1 | 1 | --- |
2 | 2 | title: "CFileException Class" |
3 | | -ms.date: "11/04/2016" |
| 3 | +ms.date: "06/09/2020" |
4 | 4 | f1_keywords: ["CFileException", "AFX/CFileException", "AFX/CFileException::CFileException", "AFX/CFileException::ErrnoToException", "AFX/CFileException::GetErrorMessage", "AFX/CFileException::OsErrorToException", "AFX/CFileException::ThrowErrno", "AFX/CFileException::ThrowOsError", "AFX/CFileException::m_cause", "AFX/CFileException::m_lOsError", "AFX/CFileException::m_strFileName"] |
5 | 5 | helpviewer_keywords: ["CFileException [MFC], CFileException", "CFileException [MFC], ErrnoToException", "CFileException [MFC], GetErrorMessage", "CFileException [MFC], OsErrorToException", "CFileException [MFC], ThrowErrno", "CFileException [MFC], ThrowOsError", "CFileException [MFC], m_cause", "CFileException [MFC], m_lOsError", "CFileException [MFC], m_strFileName"] |
6 | 6 | ms.assetid: f6491bb9-bfbc-42fd-a952-b33f9b62323f |
@@ -161,35 +161,23 @@ int m_cause; |
161 | 161 |
|
162 | 162 | This data member is a public variable of type **int**. The enumerators and their meanings are as follows: |
163 | 163 |
|
164 | | -- `CFileException::none` 0: No error occurred. |
165 | | - |
166 | | -- `CFileException::genericException` 1: An unspecified error occurred. |
167 | | - |
168 | | -- `CFileException::fileNotFound` 2: The file could not be located. |
169 | | - |
170 | | -- `CFileException::badPath` 3: All or part of the path is invalid. |
171 | | - |
172 | | -- `CFileException::tooManyOpenFiles` 4: The permitted number of open files was exceeded. |
173 | | - |
174 | | -- `CFileException::accessDenied` 5: The file could not be accessed. |
175 | | - |
176 | | -- `CFileException::invalidFile` 6: There was an attempt to use an invalid file handle. |
177 | | - |
178 | | -- `CFileException::removeCurrentDir` 7: The current working directory cannot be removed. |
179 | | - |
180 | | -- `CFileException::directoryFull` 8: There are no more directory entries. |
181 | | - |
182 | | -- `CFileException::badSeek` 9: There was an error trying to set the file pointer. |
183 | | - |
184 | | -- `CFileException::hardIO` 10: There was a hardware error. |
185 | | - |
186 | | -- `CFileException::sharingViolation` 11: SHARE.EXE was not loaded, or a shared region was locked. |
187 | | - |
188 | | -- `CFileException::lockViolation` 12: There was an attempt to lock a region that was already locked. |
189 | | - |
190 | | -- `CFileException::diskFull` 14: The disk is full. |
191 | | - |
192 | | -- `CFileException::endOfFile` 15: The end of file was reached. |
| 164 | +| Error | Value and meaning | |
| 165 | +|--|--| |
| 166 | +| `CFileException::none` | 0: No error occurred. | |
| 167 | +| `CFileException::genericException` | 1: An unspecified error occurred. | |
| 168 | +| `CFileException::fileNotFound` | 2: The file could not be located. | |
| 169 | +| `CFileException::badPath` | 3: All or part of the path is invalid. | |
| 170 | +| `CFileException::tooManyOpenFiles` | 4: The permitted number of open files was exceeded. | |
| 171 | +| `CFileException::accessDenied` | 5: The file could not be accessed. | |
| 172 | +| `CFileException::invalidFile` | 6: There was an attempt to use an invalid file handle. | |
| 173 | +| `CFileException::removeCurrentDir` | 7: The current working directory cannot be removed. | |
| 174 | +| `CFileException::directoryFull` | 8: There are no more directory entries. | |
| 175 | +| `CFileException::badSeek` | 9: There was an error trying to set the file pointer. | |
| 176 | +| `CFileException::hardIO` | 10: There was a hardware error. | |
| 177 | +| `CFileException::sharingViolation` | 11: SHARE.EXE was not loaded, or a shared region was locked. | |
| 178 | +| `CFileException::lockViolation` | 12: There was an attempt to lock a region that was already locked. | |
| 179 | +| `CFileException::diskFull` | 13: The disk is full. | |
| 180 | +| `CFileException::endOfFile` | 14: The end of file was reached. | |
193 | 181 |
|
194 | 182 | > [!NOTE] |
195 | 183 | > These `CFileException` cause enumerators are distinct from the `CArchiveException` cause enumerators. |
|
0 commit comments