CFileException::m_cause
주의
CFileException 열거 형식에 의해 정의 된 값을 포함 합니다. 이 데이터 멤버는 형식 int의 공용 변수입니다. 열거자와 그들의 의미는 다음과 같습니다.:
-
CFileException::nonenbsp;??오류가 발생 하지(&N)。
-
CFileException::genericnbsp;??알 수 없는 오류가 발생 했습니다(&N).
-
CFileException::fileNotFoundnbsp;??파일을 찾을 수 없습니다(&N).
-
CFileException::badPathnbsp;??전체 또는 일부의 경로 올바르지 않습니다(&N).
-
CFileException::tooManyOpenFilesnbsp;??열려 있는 파일의 허용 된 수를 초과 했습니다(&N).
-
CFileException::accessDeniednbsp;??파일을 액세스할 수 없습니다(&N).
-
CFileException::invalidFilenbsp;??잘못 된 파일 핸들을 사용 하려고가 했습니다(&N).
-
CFileException::removeCurrentDirnbsp;??현재 작업 디렉터리를 제거할 수 없습니다(&N).
-
CFileException::directoryFullnbsp;??거기에 더 많은 디렉터리 항목(&N)。
-
CFileException::badSeeknbsp;??파일 포인터를 설정 동안 오류가 발생 했습니다(&N).
-
CFileException::hardIOnbsp;??거기에 하드웨어 오류(&N)。
-
CFileException::sharingViolationnbsp;??공유.EXE 로드 되지 않았습니다, 또는 공유 영역이 잠겨 있 었(&N)。
-
CFileException::lockViolationnbsp;??이미 잠겨 있는 영역을 잠그려면 시도(&N)。
-
CFileException::diskFullnbsp;??디스크가 꽉 찼습니다(&N).
-
CFileException::endOfFilenbsp;??파일의 끝에 도달 했습니다(&N).
메모nbsp;??이러한 CFileException 원인 열거자는 CArchiveException 원인 열거자에서 별개(&N)。
예제
Cfileexception::m_cause에 대 한 //example
extern char * pFileName;
시도
{
nbsp; CFile f (pFileName, CFile::modeCreate (ko) | CFile::modeWrite);
}
CATCH (CFileException, e)
{
?? 경우 (e-> m_cause = CFileException::fileNotFound)
?????? printf ("오류: found\n 되지 않습니다 파일");
}
END_CATCH
CFileException 개요 |nbsp; 클래스 멤버 (ko) | 계층 구조 차트(&N)