Audacity 3.2.0
Public Member Functions | List of all members
Journal::SyncException Class Reference

#include <Journal.h>

Inheritance diagram for Journal::SyncException:
[legend]
Collaboration diagram for Journal::SyncException:
[legend]

Public Member Functions

 SyncException (const wxString &message)
 Constructs an exception with a message; message is logged into the journallog.txt file. More...
 
 ~SyncException () 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...
 

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 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...
 

Detailed Description

Definition at line 99 of file Journal.h.

Constructor & Destructor Documentation

◆ SyncException()

Journal::SyncException::SyncException ( const wxString &  message)
explicit

Constructs an exception with a message; message is logged into the journallog.txt file.

Definition at line 187 of file Journal.cpp.

188{
189 // If the exception is ever constructed, cause nonzero program exit code
190 SetError();
191
192 Log("Journal sync failed: {}", string);
193}
void Log(std::string_view message, const Args &... args)
Definition: Journal.cpp:87
void SetError()

References Journal::anonymous_namespace{Journal.cpp}::Log(), and Journal::SetError().

Here is the call graph for this function:

◆ ~SyncException()

Journal::SyncException::~SyncException ( )
override

Definition at line 195 of file Journal.cpp.

195{}

Member Function Documentation

◆ DelayedHandlerAction()

void Journal::SyncException::DelayedHandlerAction ( )
overridevirtual

Action to do in the main thread at idle time of the event loop.

Implements AudacityException.

Definition at line 197 of file Journal.cpp.

198{
199 // Simulate the application Exit menu item
200 wxCommandEvent evt{ wxEVT_MENU, wxID_EXIT };
201 wxTheApp->AddPendingEvent( evt );
202}

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