mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-12 07:48:16 -05:00
18 lines
476 B
C++
18 lines
476 B
C++
#include "InvalidXBlockSizeException.h"
|
|
|
|
InvalidXBlockSizeException::InvalidXBlockSizeException(const uint64_t size, const uint64_t max)
|
|
{
|
|
m_size = size;
|
|
m_max = max;
|
|
}
|
|
|
|
std::string InvalidXBlockSizeException::DetailedMessage()
|
|
{
|
|
return "Zone uses more XBlock memory than allowed: " + std::to_string(m_size) + " (max is " + std::to_string(m_max) + ")";
|
|
}
|
|
|
|
char const* InvalidXBlockSizeException::what() const noexcept
|
|
{
|
|
return "Zone has invalid block size";
|
|
}
|