Audacity 3.2.0
|
Can be thrown when user cancels operations, as with a progress dialog. Delayed handler does nothing. More...
#include <UserException.h>
Public Types | |
using | ProgressReporter = std::function< void(double)> |
Public Member Functions | |
UserException () | |
~UserException () override | |
void | DelayedHandlerAction () override |
Action to do in the main thread at idle time of the event loop. More... | |
Public Member Functions inherited from AudacityException | |
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 | WithCancellableProgress (std::function< void(const ProgressReporter &)> action, TranslatableString title, TranslatableString message) |
A frequently useful convenience wraps a lambda and may throw this type. More... | |
Static Public Member Functions inherited from AudacityException | |
static void | EnqueueAction (std::exception_ptr pException, std::function< void(AudacityException *)> delayedHandler) |
Additional Inherited Members | |
Protected Member Functions inherited from AudacityException | |
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... | |
Can be thrown when user cancels operations, as with a progress dialog. Delayed handler does nothing.
This class does not inherit from MessageBoxException.
Definition at line 16 of file UserException.h.
using UserException::ProgressReporter = std::function<void(double)> |
Definition at line 25 of file UserException.h.
|
inline |
Definition at line 19 of file UserException.h.
|
override |
Definition at line 12 of file UserException.cpp.
|
overridevirtual |
Action to do in the main thread at idle time of the event loop.
Implements AudacityException.
Definition at line 16 of file UserException.cpp.
|
static |
A frequently useful convenience wraps a lambda and may throw this type.
Definition at line 20 of file UserException.cpp.
References BasicUI::MakeProgress(), BasicUI::ProgressShowCancel, BasicUI::Success, and title.
Referenced by AutoDuckBase::Process(), and TimeStretching::WithClipRenderingProgress().