Audacity
3.0.3
src
blockfile
NotYetAvailableException.h
Go to the documentation of this file.
1
//
2
// NotYetAvailableException.h
3
//
4
//
5
// Created by Paul Licameli on 12/25/16.
6
//
7
//
8
9
#ifndef __AUDACITY_NOT_YET_AVAILABLE_EXCEPTION__
10
#define __AUDACITY_NOT_YET_AVAILABLE_EXCEPTION__
11
12
#include "../FileException.h"
13
14
// This exception can be thrown when attempting read of on-demand block files
15
// that have not yet completed loading.
16
class
NotYetAvailableException
final :
public
FileException
17
{
18
public
:
19
NotYetAvailableException
(
const
wxFileName &
fileName
)
20
:
FileException
{
Cause::Read
,
fileName
} {}
21
~NotYetAvailableException
();
22
23
protected
:
24
TranslatableString
ErrorMessage
()
const override
;
25
};
26
27
#endif
TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition:
TranslatableString.h:32
NotYetAvailableException
Definition:
NotYetAvailableException.h:17
FileException::Cause::Read
@ Read
FileException
Thrown for failure of file or database operations in deeply nested places.
Definition:
FileException.h:19
NotYetAvailableException::ErrorMessage
TranslatableString ErrorMessage() const override
Format the error message for this exception.
Definition:
NotYetAvailableException.cpp:16
FileException::fileName
wxFileName fileName
Definition:
FileException.h:63
NotYetAvailableException::NotYetAvailableException
NotYetAvailableException(const wxFileName &fileName)
Definition:
NotYetAvailableException.h:19
NotYetAvailableException::~NotYetAvailableException
~NotYetAvailableException()
Definition:
NotYetAvailableException.cpp:12
Generated by
1.9.0