mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 15:23:48 +01:00
Define an AudacityException subclass for unready on-demand data
This commit is contained in:
28
src/blockfile/NotYetAvailableException.cpp
Normal file
28
src/blockfile/NotYetAvailableException.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
//
|
||||
// NotYetAvailableException.cpp
|
||||
//
|
||||
//
|
||||
// Created by Paul Licameli on 12/25/16.
|
||||
//
|
||||
//
|
||||
|
||||
#include "../Audacity.h"
|
||||
#include "NotYetAvailableException.h"
|
||||
|
||||
NotYetAvailableException::~NotYetAvailableException()
|
||||
{
|
||||
}
|
||||
|
||||
std::unique_ptr< AudacityException > NotYetAvailableException::Move()
|
||||
{
|
||||
return std::unique_ptr< AudacityException >
|
||||
{ safenew NotYetAvailableException{ std::move( *this ) } };
|
||||
}
|
||||
|
||||
wxString NotYetAvailableException::ErrorMessage() const
|
||||
{
|
||||
return wxString::Format(
|
||||
_("This operation cannot be done until importation of %s completes."),
|
||||
mFileName.GetFullName()
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user