#ifndef INVALIDIDEXCEPTION_HPP #define INVALIDIDEXCEPTION_HPP #include "tierrow.hpp" #include "tiercard.hpp" #include class InvalidIdException : public QException { public: InvalidIdException(); }; class InvalidRowIdException : public InvalidIdException { public: InvalidRowIdException(TierRow::IdType id); TierRow::IdType id() const; const char* what() const noexcept override; private: const TierRow::IdType _id; const QByteArray _what; }; class InvalidCardIdException : public InvalidIdException { public: InvalidCardIdException(TierCard::IdType id); TierCard::IdType id() const; const char* what() const noexcept override; private: const TierCard::IdType _id; const QByteArray _what; }; #endif // INVALIDIDEXCEPTION_HPP