From 189b025c93007e2573d0f4fd848b691206ad1f53 Mon Sep 17 00:00:00 2001 From: ryouze <98982999+ryouze@users.noreply.github.com> Date: Tue, 1 Oct 2024 19:08:55 +0200 Subject: [PATCH] Inherit constructor from the base class. --- src/core/args.hpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/core/args.hpp b/src/core/args.hpp index 009836e..fbb8dd4 100644 --- a/src/core/args.hpp +++ b/src/core/args.hpp @@ -22,13 +22,7 @@ namespace core::args { */ class ArgsError final : public std::runtime_error { public: - /** - * @brief Construct a new ArgsError object. - * - * @param message Error message that describes the cause of the exception (e.g., "Failed to load data"). - */ - explicit ArgsError(const std::string &message) - : std::runtime_error(message) {} + using std::runtime_error::runtime_error; }; /**