mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-07 21:38:01 -05:00
20 lines
615 B
C++
20 lines
615 B
C++
#include "InvalidFileNameException.h"
|
|
|
|
#include <format>
|
|
|
|
InvalidFileNameException::InvalidFileNameException(const std::string& actualFileName, const std::string& expectedFileName)
|
|
{
|
|
m_actual_file_name = actualFileName;
|
|
m_expected_file_name = expectedFileName;
|
|
}
|
|
|
|
std::string InvalidFileNameException::DetailedMessage()
|
|
{
|
|
return std::format("Name verification failed: The fastfile was created as '{}' but loaded as '{}'", m_expected_file_name, m_actual_file_name);
|
|
}
|
|
|
|
char const* InvalidFileNameException::what() const noexcept
|
|
{
|
|
return "The filename when created and when loaded does not match";
|
|
}
|