Skip to content

Commit

Permalink
Inherit constructor from the base class.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryouze committed Oct 1, 2024
1 parent 8514c28 commit 189b025
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/core/args.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

/**
Expand Down

0 comments on commit 189b025

Please sign in to comment.