Audacity  3.0.3
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:
Collaboration diagram for SimpleMessageBoxException:

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 &&) PROHIBITED
virtual TranslatableString ErrorMessage () const override
 Format the error message for this exception. More...
- Public Member Functions inherited from AudacityException
 AudacityException ()
virtual ~AudacityException ()=0

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 wxString ErrorHelpUrl () const
- Protected Member Functions inherited from AudacityException
 AudacityException (const AudacityException &)=default
 Make this protected to prevent slicing copies. More...
 AudacityException (AudacityException &&) PROHIBITED
 Don't allow moves of this class or subclasses. More...
AudacityExceptionoperator= (const AudacityException &) PROHIBITED
 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_ = "" 
exceptionTypeException type

Definition at line 97 of file AudacityException.h.

104  , message{ message_ }
105  {
106  helpUrl = helpUrl_;
107  }

References MessageBoxException::exceptionType.

◆ ~SimpleMessageBoxException()

SimpleMessageBoxException::~SimpleMessageBoxException ( )

Definition at line 72 of file AudacityException.cpp.

73 {
74 }

◆ SimpleMessageBoxException() [2/2]

SimpleMessageBoxException::SimpleMessageBoxException ( const SimpleMessageBoxException )

Member Function Documentation

◆ ErrorMessage()

TranslatableString SimpleMessageBoxException::ErrorMessage ( ) const

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 &&  )

Member Data Documentation

◆ message

TranslatableString SimpleMessageBoxException::message

Stored message.

Definition at line 118 of file AudacityException.h.

Referenced by ErrorMessage().

The documentation for this class was generated from the following files:
TranslatableString message
Stored message.
Definition: AudacityException.h:118
ExceptionType exceptionType
Exception type.
Definition: AudacityException.h:85
Abstract AudacityException subclass displays a message, specified by further subclass.
Definition: AudacityException.h:62
wxString helpUrl
Definition: AudacityException.h:89
TranslatableString caption
Stored caption.
Definition: AudacityException.h:81