simplify some exception classes
Signed-off-by: Double Sine <xiao_ai_yu@live.cn>
This commit is contained in:
parent
e46c9d7176
commit
d190d8242d
@ -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) {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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) {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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) {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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) {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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) {}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user