Audacity 3.2.0
|
Base class for exceptions specially processed by the application. More...
#include <AudacityException.h>
Public Member Functions | |
AudacityException () | |
virtual | ~AudacityException ()=0 |
virtual void | DelayedHandlerAction ()=0 |
Action to do in the main thread at idle time of the event loop. More... | |
Static Public Member Functions | |
static void | EnqueueAction (std::exception_ptr pException, std::function< void(AudacityException *)> delayedHandler) |
Protected Member Functions | |
AudacityException (const AudacityException &)=default | |
Make this protected to prevent slicing copies. More... | |
AudacityException (AudacityException &&)=delete | |
Don't allow moves of this class or subclasses. More... | |
AudacityException & | operator= (const AudacityException &)=delete |
Disallow assignment. More... | |
Base class for exceptions specially processed by the application.
Objects of this type can be thrown and caught in any thread, stored, and then used by the main thread in later idle time to explain the error condition to the user.
Definition at line 32 of file AudacityException.h.
|
inline |
Definition at line 35 of file AudacityException.h.
|
pure virtual |
Definition at line 18 of file AudacityException.cpp.
|
protecteddefault |
Make this protected to prevent slicing copies.
|
protecteddelete |
Don't allow moves of this class or subclasses.
|
pure virtual |
Action to do in the main thread at idle time of the event loop.
Implemented in MessageBoxException, UserException, Journal::SyncException, and MessageBoxException.
Referenced by DefaultDelayedHandlerAction(), and AudacityApp::OnExceptionInMainLoop().
|
static |
Definition at line 22 of file AudacityException.cpp.
References BasicUI::CallAfter().
|
protecteddelete |
Disallow assignment.