From a9a430bee0b920cdd228276af82c7d60a2825721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= Date: Wed, 12 Jun 2024 06:43:30 +0200 Subject: [PATCH] `TransactionReplayError` move to header `transaction_sr.hpp` This allows referencing from other files. --- libdnf5/transaction/transaction_sr.cpp | 7 ------- libdnf5/transaction/transaction_sr.hpp | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/libdnf5/transaction/transaction_sr.cpp b/libdnf5/transaction/transaction_sr.cpp index 88a0645cd..48562213f 100644 --- a/libdnf5/transaction/transaction_sr.cpp +++ b/libdnf5/transaction/transaction_sr.cpp @@ -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")); diff --git a/libdnf5/transaction/transaction_sr.hpp b/libdnf5/transaction/transaction_sr.hpp index 830cbb72b..e72ca076d 100644 --- a/libdnf5/transaction/transaction_sr.hpp +++ b/libdnf5/transaction/transaction_sr.hpp @@ -29,6 +29,13 @@ along with libdnf. If not, see . 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;