more updates

This commit is contained in:
Ikatono
2024-05-22 01:19:23 -05:00
parent fac2260a01
commit 23068db95f
19 changed files with 416 additions and 115 deletions

38
invalididexception.cpp Normal file
View File

@@ -0,0 +1,38 @@
#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();
}