simplify some exception classes

Signed-off-by: Double Sine <xiao_ai_yu@live.cn>
This commit is contained in:
Double Sine
2022-05-07 23:08:50 +08:00
parent 73ff67d4a5
commit b3046b43f0
9 changed files with 99 additions and 105 deletions

View File

@@ -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;
};
}

View File

@@ -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;
};
}

View File

@@ -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;
};
}