Skip to content

Commit

Permalink
TransactionReplayError move to header transaction_sr.hpp
Browse files Browse the repository at this point in the history
This allows referencing from other files.
  • Loading branch information
kontura authored and j-mracek committed Jun 19, 2024
1 parent 444cb9c commit a9a430b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 0 additions & 7 deletions libdnf5/transaction/transaction_sr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,6 @@ namespace libdnf5::transaction {
constexpr const char * VERSION_MAJOR = "1";
constexpr const char * VERSION_MINOR = "0";

class TransactionReplayError : public Error {
public:
using Error::Error;
const char * get_domain_name() const noexcept override { return "libdnf5::transaction"; }
const char * get_name() const noexcept override { return "TransactionReplayError"; }
};

TransactionReplay parse_transaction_replay(const std::string & json_serialized_transaction) {
if (json_serialized_transaction.empty()) {
throw TransactionReplayError(M_("Transaction replay JSON serialized transaction input is empty"));
Expand Down
7 changes: 7 additions & 0 deletions libdnf5/transaction/transaction_sr.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,13 @@ along with libdnf. If not, see <https://www.gnu.org/licenses/>.

namespace libdnf5::transaction {

class TransactionReplayError : public Error {
public:
using Error::Error;
const char * get_domain_name() const noexcept override { return "libdnf5::transaction"; }
const char * get_name() const noexcept override { return "TransactionReplayError"; }
};


struct GroupReplay {
TransactionItemAction action;
Expand Down

0 comments on commit a9a430b

Please sign in to comment.