Audacity  2.2.0
FileException Class Reference

#include <FileException.h>

Inheritance diagram for FileException:
MessageBoxException AudacityException NotYetAvailableException

Public Types

enum  Cause { Cause::Open, Cause::Read, Cause::Write, Cause::Rename }
 

Public Member Functions

 FileException (Cause cause_, const wxFileName &fileName_, const wxString &caption=wxString{}, const wxFileName &renameTarget_={})
 
 FileException (FileException &&that)
 
FileExceptionoperator= (FileException &&) PROHIBITED
 
 ~FileException () override
 
- Public Member Functions inherited from AudacityException
 AudacityException ()
 
virtual ~AudacityException ()=0
 

Public Attributes

Cause cause
 
wxFileName fileName
 
wxFileName renameTarget
 

Protected Member Functions

std::unique_ptr
< AudacityException
Move () override
 
wxString ErrorMessage () const override
 
- Protected Member Functions inherited from MessageBoxException
 MessageBoxException (const wxString &caption=wxString{})
 
 ~MessageBoxException () override
 
 MessageBoxException (const MessageBoxException &)
 
MessageBoxExceptionoperator= (MessageBoxException &&)
 
- Protected Member Functions inherited from AudacityException
 AudacityException (AudacityException &&)
 
 AudacityException (const AudacityException &)=default
 
AudacityExceptionoperator= (AudacityException &&)
 
AudacityExceptionoperator= (const AudacityException &) PROHIBITED
 

Member Enumeration Documentation

enum FileException::Cause
strong
Enumerator
Open 
Read 
Write 
Rename 

Constructor & Destructor Documentation

FileException::FileException ( Cause  cause_,
const wxFileName &  fileName_,
const wxString &  caption = wxString{},
const wxFileName &  renameTarget_ = {} 
)
inlineexplicit
FileException::FileException ( FileException &&  that)
inline
FileException::~FileException ( )
override

Member Function Documentation

wxString FileException::ErrorMessage ( ) const
overrideprotectedvirtual
std::unique_ptr< AudacityException > FileException::Move ( )
overrideprotectedvirtual

Implements AudacityException.

References safenew.

FileException& FileException::operator= ( FileException &&  )

Member Data Documentation

Cause FileException::cause
wxFileName FileException::fileName
wxFileName FileException::renameTarget

Referenced by ErrorMessage().


The documentation for this class was generated from the following files: