Share via


CArchiveException::CArchiveException

Constructs a CArchiveException object, storing the value of cause in the object.

CArchiveException( 
   int cause = CArchiveException::none,
   LPCTSTR lpszArchiveName = NULL 
);

Parameters

  • cause
    An enumerated type variable that indicates the reason for the exception. For a list of the enumerators, see the m_cause data member.

  • lpszArchiveName
    Points to a string containing the name of the CArchive object causing the exception.

Remarks

You can create a CArchiveException object on the heap and throw it yourself or let the global function AfxThrowArchiveException handle it for you.

Do not use this constructor directly; instead, call the global function AfxThrowArchiveException.

Requirements

Header: afx.h

See Also

Reference

CArchiveException Class

Hierarchy Chart