Audacity 3.2.0
|
Exception that should be impossible in production, thrown only from provably unreachable places. More...
#include <InconsistencyException.h>
Public Member Functions | |
InconsistencyException () | |
InconsistencyException (const char *fn, const char *f, unsigned l) | |
Don't call this directly but use CONSTRUCT_INCONSISTENCY_EXCEPTION or THROW_INCONSISTENCY_EXCEPTION. More... | |
InconsistencyException (const InconsistencyException &that) | |
~InconsistencyException () override | |
unsigned | GetLine () const |
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 Member Functions | |
TranslatableString | ErrorMessage () const override |
Format the error message for this exception. More... | |
Private Attributes | |
const char * | func {} |
const char * | file {} |
unsigned | line {} |
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... | |
AudacityException & | operator= (const AudacityException &)=delete |
Disallow assignment. More... | |
Exception that should be impossible in production, thrown only from provably unreachable places.
Some errors that formerly were assertion violations now throw exceptions, even in production code. These may be violations of function preconditions or the results of logical errors internal to functions. These conditions are supposed to be deducible statically as never happening.
The error message identifies source file and line number, possibly the function too (depending on the compiler), and suggests that the user inform the development team.
Definition at line 23 of file InconsistencyException.h.
|
inline |
Definition at line 26 of file InconsistencyException.h.
|
inlineexplicit |
Don't call this directly but use CONSTRUCT_INCONSISTENCY_EXCEPTION or THROW_INCONSISTENCY_EXCEPTION.
fn | file name supplied by preprocessor |
f | function name supplied by preprocessor |
l | line number supplied by preprocessor |
Definition at line 31 of file InconsistencyException.h.
|
inline |
Definition at line 40 of file InconsistencyException.h.
|
override |
Definition at line 13 of file InconsistencyException.cpp.
|
overrideprivatevirtual |
Format the error message for this exception.
Implements MessageBoxException.
Definition at line 17 of file InconsistencyException.cpp.
References file, func, line, and XO().
|
inline |
Definition at line 49 of file InconsistencyException.h.
|
private |
Definition at line 56 of file InconsistencyException.h.
Referenced by ErrorMessage().
|
private |
Definition at line 55 of file InconsistencyException.h.
Referenced by ErrorMessage().
|
private |
Definition at line 57 of file InconsistencyException.h.
Referenced by ErrorMessage().