39 lines
703 B
C++
39 lines
703 B
C++
#include "invalididexception.hpp"
|
|
|
|
InvalidIdException::InvalidIdException()
|
|
{
|
|
|
|
}
|
|
|
|
InvalidRowIdException::InvalidRowIdException(TierRow::IdType id)
|
|
: _id(id), _what(QString("id: {}").arg(QString::number(id)).toLocal8Bit())
|
|
{
|
|
|
|
}
|
|
|
|
TierRow::IdType InvalidRowIdException::id() const
|
|
{
|
|
return _id;
|
|
}
|
|
|
|
const char* InvalidRowIdException::what() const noexcept
|
|
{
|
|
return _what.data();
|
|
}
|
|
|
|
InvalidCardIdException::InvalidCardIdException(TierCard::IdType id)
|
|
: _id(id), _what(QString("id: {}").arg(QString::number(id)).toLocal8Bit())
|
|
{
|
|
|
|
}
|
|
|
|
TierCard::IdType InvalidCardIdException::id() const
|
|
{
|
|
return _id;
|
|
}
|
|
|
|
const char* InvalidCardIdException::what() const noexcept
|
|
{
|
|
return _what.data();
|
|
}
|