more updates
This commit is contained in:
38
invalididexception.cpp
Normal file
38
invalididexception.cpp
Normal 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();
|
||||
}
|
||||
Reference in New Issue
Block a user