diff --git a/common/exceptions/index_exception.hpp b/common/exceptions/index_exception.hpp index f49d1c1..568aa30 100644 --- a/common/exceptions/index_exception.hpp +++ b/common/exceptions/index_exception.hpp @@ -4,9 +4,7 @@ namespace nkg::exceptions { class index_exception : public ::nkg::exception { - public: - index_exception(std::string_view file, int line, std::string_view message) noexcept : - ::nkg::exception(file, line, message) {} + using ::nkg::exception::exception; }; } diff --git a/common/exceptions/key_exception.hpp b/common/exceptions/key_exception.hpp index 6809748..933f8e1 100644 --- a/common/exceptions/key_exception.hpp +++ b/common/exceptions/key_exception.hpp @@ -4,9 +4,7 @@ namespace nkg::exceptions { class key_exception : public ::nkg::exception { - public: - key_exception(std::string_view file, int line, std::string_view message) noexcept : - ::nkg::exception(file, line, message) {} + using ::nkg::exception::exception; }; } diff --git a/common/exceptions/not_implemented_exception.hpp b/common/exceptions/not_implemented_exception.hpp index 2e9db3e..66990d3 100644 --- a/common/exceptions/not_implemented_exception.hpp +++ b/common/exceptions/not_implemented_exception.hpp @@ -4,9 +4,7 @@ namespace nkg::exceptions { class not_implemented_exception : public ::nkg::exception { - public: - not_implemented_exception(std::string_view file, int line, std::string_view message) noexcept : - ::nkg::exception(file, line, message) {} + using ::nkg::exception::exception; }; } diff --git a/common/exceptions/operation_canceled_exception.hpp b/common/exceptions/operation_canceled_exception.hpp index 5a1053c..b395175 100644 --- a/common/exceptions/operation_canceled_exception.hpp +++ b/common/exceptions/operation_canceled_exception.hpp @@ -4,9 +4,7 @@ namespace nkg::exceptions { class operation_canceled_exception : public ::nkg::exception { - public: - operation_canceled_exception(std::string_view file, int line, std::string_view message) noexcept : - ::nkg::exception(file, line, message) {} + using ::nkg::exception::exception; }; } diff --git a/common/exceptions/overflow_exception.hpp b/common/exceptions/overflow_exception.hpp index 5eb4fec..216e860 100644 --- a/common/exceptions/overflow_exception.hpp +++ b/common/exceptions/overflow_exception.hpp @@ -4,9 +4,7 @@ namespace nkg::exceptions { class overflow_exception : public ::nkg::exception { - public: - overflow_exception(std::string_view file, int line, std::string_view message) noexcept : - ::nkg::exception(file, line, message) {} + using ::nkg::exception::exception; }; }