simplify some exception classes

Signed-off-by: Double Sine <xiao_ai_yu@live.cn>
This commit is contained in:
Double Sine 2022-05-11 11:09:58 +08:00
parent e46c9d7176
commit d190d8242d
No known key found for this signature in database
GPG Key ID: 44460E4F43EA8633
5 changed files with 5 additions and 15 deletions

View File

@ -4,9 +4,7 @@
namespace nkg::exceptions { namespace nkg::exceptions {
class index_exception : public ::nkg::exception { class index_exception : public ::nkg::exception {
public: using ::nkg::exception::exception;
index_exception(std::string_view file, int line, std::string_view message) noexcept :
::nkg::exception(file, line, message) {}
}; };
} }

View File

@ -4,9 +4,7 @@
namespace nkg::exceptions { namespace nkg::exceptions {
class key_exception : public ::nkg::exception { class key_exception : public ::nkg::exception {
public: using ::nkg::exception::exception;
key_exception(std::string_view file, int line, std::string_view message) noexcept :
::nkg::exception(file, line, message) {}
}; };
} }

View File

@ -4,9 +4,7 @@
namespace nkg::exceptions { namespace nkg::exceptions {
class not_implemented_exception : public ::nkg::exception { class not_implemented_exception : public ::nkg::exception {
public: using ::nkg::exception::exception;
not_implemented_exception(std::string_view file, int line, std::string_view message) noexcept :
::nkg::exception(file, line, message) {}
}; };
} }

View File

@ -4,9 +4,7 @@
namespace nkg::exceptions { namespace nkg::exceptions {
class operation_canceled_exception : public ::nkg::exception { class operation_canceled_exception : public ::nkg::exception {
public: using ::nkg::exception::exception;
operation_canceled_exception(std::string_view file, int line, std::string_view message) noexcept :
::nkg::exception(file, line, message) {}
}; };
} }

View File

@ -4,9 +4,7 @@
namespace nkg::exceptions { namespace nkg::exceptions {
class overflow_exception : public ::nkg::exception { class overflow_exception : public ::nkg::exception {
public: using ::nkg::exception::exception;
overflow_exception(std::string_view file, int line, std::string_view message) noexcept :
::nkg::exception(file, line, message) {}
}; };
} }