Remove dead code

This commit is contained in:
Alex Kremer
2026-08-12 13:59:11 +01:00
parent 3196ef59c1
commit 95b28f73af

View File

@@ -4,11 +4,8 @@
#include <boost/json/object.hpp>
#include <rpcspec/Errors.hpp>
#include <exception>
#include <optional>
#include <string>
#include <string_view>
#include <utility>
namespace rpc {
@@ -30,62 +27,6 @@ struct EtlErrorInfo {
std::string_view const message;
};
/**
* @brief Invalid parameters error.
*/
class InvalidParamsError : public std::exception {
std::string msg_;
public:
/**
* @brief Construct a new Invalid Params Error object
*
* @param msg The error message
*/
explicit InvalidParamsError(std::string msg) : msg_(std::move(msg))
{
}
/**
* @brief Get the error message as a C string
*
* @return The error message
*/
[[nodiscard]] char const*
what() const noexcept override
{
return msg_.c_str();
}
};
/**
* @brief Account not found error.
*/
class AccountNotFoundError : public std::exception {
std::string account_;
public:
/**
* @brief Construct a new Account Not Found Error object
*
* @param acct The account
*/
explicit AccountNotFoundError(std::string acct) : account_(std::move(acct))
{
}
/**
* @brief Get the error message as a C string
*
* @return The error message
*/
[[nodiscard]] char const*
what() const noexcept override
{
return account_.c_str();
}
};
/**
* @brief A globally available @ref rpc::Status that represents a successful state.
*/