Audacity 3.2.0
Public Member Functions | Private Attributes | List of all members
SimpleMessageBoxException Class Reference

A MessageBoxException that shows a given, unvarying string. More...

#include <AudacityException.h>

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

Public Member Functions

 SimpleMessageBoxException (ExceptionType exceptionType, const TranslatableString &message_, const TranslatableString &caption=XO("Message"), const wxString &helpUrl_="")
 
 ~SimpleMessageBoxException () override
 
 SimpleMessageBoxException (const SimpleMessageBoxException &)=default
 
SimpleMessageBoxExceptionoperator= (SimpleMessageBoxException &&)=delete
 
virtual TranslatableString ErrorMessage () const override
 Format the error message for this exception. 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...
 

Private Attributes

TranslatableString message
 Stored message. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AudacityException
static void EnqueueAction (std::exception_ptr pException, std::function< void(AudacityException *)> delayedHandler)
 
- 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 &)
 
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...
 
AudacityExceptionoperator= (const AudacityException &)=delete
 Disallow assignment. More...
 
- Protected Attributes inherited from MessageBoxException
wxString helpUrl { "" }
 

Detailed Description

A MessageBoxException that shows a given, unvarying string.

Definition at line 93 of file AudacityException.h.

Constructor & Destructor Documentation

◆ SimpleMessageBoxException() [1/2]

SimpleMessageBoxException::SimpleMessageBoxException ( ExceptionType  exceptionType,
const TranslatableString message_,
const TranslatableString caption = XO("Message"),
const wxString &  helpUrl_ = "" 
)
inlineexplicit
Parameters
exceptionTypeException type

Definition at line 97 of file AudacityException.h.

104 , message{ message_ }
105 {
106 helpUrl = helpUrl_;
107 }
Abstract AudacityException subclass displays a message, specified by further subclass.
TranslatableString caption
Stored caption.
ExceptionType exceptionType
Exception type.
TranslatableString message
Stored message.

◆ ~SimpleMessageBoxException()

SimpleMessageBoxException::~SimpleMessageBoxException ( )
override

Definition at line 72 of file AudacityException.cpp.

73{
74}

◆ SimpleMessageBoxException() [2/2]

SimpleMessageBoxException::SimpleMessageBoxException ( const SimpleMessageBoxException )
default

Member Function Documentation

◆ ErrorMessage()

TranslatableString SimpleMessageBoxException::ErrorMessage ( ) const
overridevirtual

Format the error message for this exception.

Implements MessageBoxException.

Definition at line 76 of file AudacityException.cpp.

77{
78 return message;
79}

References message.

◆ operator=()

SimpleMessageBoxException & SimpleMessageBoxException::operator= ( SimpleMessageBoxException &&  )
delete

Member Data Documentation

◆ message

TranslatableString SimpleMessageBoxException::message
private

Stored message.

Definition at line 118 of file AudacityException.h.

Referenced by ErrorMessage().


The documentation for this class was generated from the following files: