diff --git a/src/rpc/Errors.hpp b/src/rpc/Errors.hpp index d05e3f05c..b79e2cdec 100644 --- a/src/rpc/Errors.hpp +++ b/src/rpc/Errors.hpp @@ -4,11 +4,8 @@ #include #include -#include #include -#include #include -#include 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. */