CArchiveException::CArchiveException

Syntax

CArchiveException( int cause = CArchiveException::none );

Parameters

cause

An enumerated type variable that indicates the reason for the exception. See the m_cause data member for a list of the enumerators.

Remarks

Constructs a CArchiveException object, storing the cause code in the object. You can create a CArchiveException object on the heap and throw it yourself or let AfxThrowArchiveException handle it for you.

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