Share via


AfxThrowArchiveException

 

Throws an archive exception.

Syntax

      void AfxThrowArchiveException(
   int cause,
   LPCTSTR lpszArchiveName 
); 

Parameters

  • cause
    Specifies an integer that indicates the reason for the exception. For a list of the possible values, see CArchiveException::m_cause.

  • lpszArchiveName
    Points to a string containing the name of the CArchive object that caused the exception (if available).

Requirements

Header: afx.h

See Also

MFC Macros and Globals
CArchiveException Class
THROW (MFC)