Audacity 3.2.0
|
Abstract AudacityException subclass displays a message, specified by further subclass. More...
#include <AudacityException.h>
Protected Member Functions | |
MessageBoxException (ExceptionType exceptionType, const TranslatableString &caption) | |
If default-constructed with empty caption, it makes no message box. More... | |
~MessageBoxException () override | |
MessageBoxException (const MessageBoxException &) | |
virtual TranslatableString | ErrorMessage () const =0 |
Format the error message for this exception. More... | |
virtual wxString | ErrorHelpUrl () const |
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... | |
Protected Attributes | |
wxString | helpUrl { "" } |
Private Member Functions | |
void | DelayedHandlerAction () final |
Do not allow subclasses to change behavior, except by overriding ErrorMessage(). More... | |
virtual void | DelayedHandlerAction ()=0 |
Privatize the inherited function. More... | |
Private Attributes | |
TranslatableString | caption |
Stored caption. More... | |
ExceptionType | exceptionType |
Exception type. More... | |
bool | moved { false } |
Whether *this has been the source of a copy. More... | |
Additional Inherited Members | |
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 inherited from AudacityException | |
static void | EnqueueAction (std::exception_ptr pException, std::function< void(AudacityException *)> delayedHandler) |
Abstract AudacityException subclass displays a message, specified by further subclass.
At most one message will be displayed for each pass through the main event idle loop, no matter how many exceptions were caught.
Definition at line 60 of file AudacityException.h.
|
explicitprotected |
If default-constructed with empty caption, it makes no message box.
exceptionType | Exception type |
caption | Shown in message box's frame; not the actual message |
Definition at line 39 of file AudacityException.cpp.
References caption, TranslatableString::empty(), moved, and sOutstandingMessages.
|
overrideprotected |
Definition at line 64 of file AudacityException.cpp.
References moved, and sOutstandingMessages.
|
protected |
Definition at line 55 of file AudacityException.cpp.
References caption, exceptionType, helpUrl, and moved.
|
finalprivatevirtual |
Do not allow subclasses to change behavior, except by overriding ErrorMessage().
Implements AudacityException.
Definition at line 82 of file AudacityException.cpp.
References BasicUI::MessageBoxOptions::Caption(), caption, BasicUI::DefaultCaption(), TranslatableString::empty(), ErrorHelpUrl(), ErrorMessage(), exceptionType, Internal, moved, BasicUI::ShowErrorDialog(), BasicUI::ShowMessageBox(), and sOutstandingMessages.
|
privatevirtual |
Privatize the inherited function.
Implements AudacityException.
|
inlineprotectedvirtual |
Reimplemented in FileException.
Definition at line 81 of file AudacityException.h.
Referenced by DelayedHandlerAction().
|
protectedpure virtual |
Format the error message for this exception.
Implemented in SimpleMessageBoxException, InconsistencyException, and FileException.
Referenced by DelayedHandlerAction().
|
private |
Stored caption.
Definition at line 84 of file AudacityException.h.
Referenced by DelayedHandlerAction(), and MessageBoxException().
|
private |
Exception type.
Definition at line 85 of file AudacityException.h.
Referenced by DelayedHandlerAction(), and MessageBoxException().
|
mutableprotected |
Definition at line 89 of file AudacityException.h.
Referenced by MessageBoxException().
|
mutableprivate |
Whether *this
has been the source of a copy.
Definition at line 87 of file AudacityException.h.
Referenced by DelayedHandlerAction(), MessageBoxException(), and ~MessageBoxException().