10#ifndef __AUDACITY_FILE_EXCEPTION__
11#define __AUDACITY_FILE_EXCEPTION__
14#include <wx/filename.h>
31 const wxFileName &fileName_,
33 const wxFileName &renameTarget_ = {}
40 , cause{ cause_ }, fileName{ fileName_ }, renameTarget{ renameTarget_ }
46 , fileName{ that.fileName }
47 , renameTarget{ that.renameTarget }
Declare abstract class AudacityException, some often-used subclasses, and GuardedCall.
@ Internal
Indicates internal failure from Audacity.
AudacityException & operator=(const AudacityException &)=delete
Disallow assignment.
Thrown for failure of file or database operations in deeply nested places.
FileException(Cause cause_, const wxFileName &fileName_, const TranslatableString &caption=XO("File Error"), const wxFileName &renameTarget_={})
Cause
Identifies file operation that failed.
FileException(const FileException &that)
Abstract AudacityException subclass displays a message, specified by further subclass.
virtual TranslatableString ErrorMessage() const =0
Format the error message for this exception.
virtual wxString ErrorHelpUrl() const
Holds a msgid for the translation catalog; may also bind format arguments.