Files
qTier/invalididexception.cpp
2024-05-22 01:19:23 -05:00

39 lines
645 B
C++

#include "invalididexception.hpp"
InvalidIdException::InvalidIdException()
{
}
InvalidRowIdException::InvalidRowIdException(TierRow::IdType id)
: _id(id), _what(std::format("id: {}", _id))
{
}
TierRow::IdType InvalidRowIdException::id() const
{
return _id;
}
const char* InvalidRowIdException::what() const noexcept
{
return _what.c_str();
}
InvalidCardIdException::InvalidCardIdException(TierCard::IdType id)
: _id(id), _what(std::format("id: {}", _id))
{
}
TierCard::IdType InvalidCardIdException::id() const
{
return _id;
}
const char* InvalidCardIdException::what() const noexcept
{
return _what.c_str();
}