9#ifndef __AUDACITY_INCONSISTENCY_EXCEPTION__
10#define __AUDACITY_INCONSISTENCY_EXCEPTION__
37 , func {
fn }, file { f }, line { l }
62#define CONSTRUCT_INCONSISTENCY_EXCEPTION \
63 InconsistencyException( __func__, __FILE__ , __LINE__ )
71#define CONSTRUCT_INCONSISTENCY_EXCEPTION \
72 InconsistencyException( "", __FILE__ , __LINE__ )
79#define THROW_INCONSISTENCY_EXCEPTION throw CONSTRUCT_INCONSISTENCY_EXCEPTION
Declare abstract class AudacityException, some often-used subclasses, and GuardedCall.
ExceptionType
A type of an exception.
@ Internal
Indicates internal failure from Audacity.
Exception that should be impossible in production, thrown only from provably unreachable places.
InconsistencyException(const char *fn, const char *f, unsigned l)
Don't call this directly but use CONSTRUCT_INCONSISTENCY_EXCEPTION or THROW_INCONSISTENCY_EXCEPTION.
InconsistencyException(const InconsistencyException &that)
Abstract AudacityException subclass displays a message, specified by further subclass.
virtual TranslatableString ErrorMessage() const =0
Format the error message for this exception.
Holds a msgid for the translation catalog; may also bind format arguments.