Audacity  3.0.3
Public Member Functions | Protected Member Functions | List of all members
NotYetAvailableException Class Referencefinal

#include <NotYetAvailableException.h>

Inheritance diagram for NotYetAvailableException:
[legend]
Collaboration diagram for NotYetAvailableException:
[legend]

Public Member Functions

 NotYetAvailableException (const wxFileName &fileName)
 
 ~NotYetAvailableException ()
 
- Public Member Functions inherited from FileException
 FileException (Cause cause_, const wxFileName &fileName_, const TranslatableString &caption=XO("File Error"), const wxFileName &renameTarget_={})
 
 FileException (const FileException &that)
 
FileExceptionoperator= (FileException &&)=delete
 
 ~FileException () override
 
- Public Member Functions inherited from AudacityException
 AudacityException ()
 
virtual ~AudacityException ()=0
 

Protected Member Functions

TranslatableString ErrorMessage () const override
 Format the error message for this exception. More...
 
- Protected Member Functions inherited from FileException
TranslatableString ErrorMessage () const override
 Format an error message appropriate for the Cause. More...
 
wxString ErrorHelpUrl () const override
 
- Protected Member Functions inherited from MessageBoxException
 MessageBoxException (ExceptionType exceptionType, const TranslatableString &caption)
 If default-constructed with empty caption, it makes no message box. More...
 
 ~MessageBoxException () override
 
 MessageBoxException (const MessageBoxException &)
 
- Protected Member Functions inherited from AudacityException
 AudacityException (const AudacityException &)=default
 Make this protected to prevent slicing copies. More...
 
 AudacityException (AudacityException &&) PROHIBITED
 Don't allow moves of this class or subclasses. More...
 
AudacityExceptionoperator= (const AudacityException &) PROHIBITED
 Disallow assignment. More...
 

Additional Inherited Members

- Public Types inherited from FileException
enum  Cause { Cause::Open, Cause::Read, Cause::Write, Cause::Rename }
 Identifies file operation that failed. More...
 
- Static Public Member Functions inherited from FileException
static TranslatableString WriteFailureMessage (const wxFileName &fileName)
 
- Static Public Member Functions inherited from AudacityException
static void EnqueueAction (std::exception_ptr pException, std::function< void(AudacityException *)> delayedHandler)
 
- Public Attributes inherited from FileException
Cause cause
 
wxFileName fileName
 
wxFileName renameTarget
 
- Protected Attributes inherited from MessageBoxException
wxString helpUrl { "" }
 

Detailed Description

Definition at line 16 of file NotYetAvailableException.h.

Constructor & Destructor Documentation

◆ NotYetAvailableException()

NotYetAvailableException::NotYetAvailableException ( const wxFileName &  fileName)
inline

◆ ~NotYetAvailableException()

NotYetAvailableException::~NotYetAvailableException ( )

Definition at line 12 of file NotYetAvailableException.cpp.

13 {
14 }

Member Function Documentation

◆ ErrorMessage()

TranslatableString NotYetAvailableException::ErrorMessage ( ) const
overrideprotectedvirtual

Format the error message for this exception.

Implements MessageBoxException.

Definition at line 16 of file NotYetAvailableException.cpp.

17 {
18  return
19  XO("This operation cannot be done until importation of %s completes.")
20  .Format( fileName.GetFullName() );
21 }

References FileException::fileName, and XO.


The documentation for this class was generated from the following files:
FileException::Cause::Read
@ Read
FileException
Thrown for failure of file or database operations in deeply nested places.
Definition: FileException.h:19
XO
#define XO(s)
Definition: Internat.h:31
FileException::fileName
wxFileName fileName
Definition: FileException.h:63