CDocument::ReportSaveLoadException

This method is called by the framework when an exception is thrown (typically a CFileException or CArchiveException) while saving or loading the document. The default implementation examines the exception object and looks for an error message that specifically describes the cause. If a specific message is not found or if e is NULL, the general message specified by the nIDPDefault parameter is used. The method then displays a message box containing the error message.

Override this method if you want to provide additional, customized failure messages. This is an advanced overridable.

At a Glance

Header file: Afxwin.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

virtual void ReportSaveLoadException( LPCTSTR lpszPathName, CException* e, BOOL bSaving, UINT nIDPDefault );

See Also

CDocument::OnOpenDocument, CDocument::OnSaveDocument, CFileException, CArchiveException