Audacity  2.2.0
NotYetAvailableException.h
Go to the documentation of this file.
1 //
2 // NotYetAvailableException.h
3 //
4 //
5 // Created by Paul Licameli on 12/25/16.
6 //
7 //
8 
9 #ifndef __AUDACITY_NOT_YET_AVAILABLE_EXCEPTION__
10 #define __AUDACITY_NOT_YET_AVAILABLE_EXCEPTION__
11 
12 #include "../FileException.h"
13 #include <wx/filename.h>
14 
15 // This exception can be thrown when attempting read of on-demand block files
16 // that have not yet completed loading.
18 {
19 public:
20  NotYetAvailableException( const wxFileName &fileName )
21  : FileException{ Cause::Read, fileName } {}
23  : FileException( std::move( that ) ) {}
26 
27 protected:
28  std::unique_ptr< AudacityException > Move() override;
29  wxString ErrorMessage() const override;
30 };
31 
32 #endif
NotYetAvailableException & operator=(NotYetAvailableException &&) PROHIBITED
#define PROHIBITED
Definition: Audacity.h:248
Definition: AudacityException.h:24
std::unique_ptr< AudacityException > Move() override
Definition: NotYetAvailableException.cpp:16
Definition: FileException.h:15
NotYetAvailableException(const wxFileName &fileName)
Definition: NotYetAvailableException.h:20
wxFileName fileName
Definition: FileException.h:47
Definition: NotYetAvailableException.h:17
NotYetAvailableException(NotYetAvailableException &&that)
Definition: NotYetAvailableException.h:22
wxString ErrorMessage() const override
Definition: NotYetAvailableException.cpp:22