aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2022-05-28 05:14:47 +0200
committerSven Gothel <[email protected]>2022-05-28 05:14:47 +0200
commit82a95dd9058abec41a539a4e0b2dba4c109ca55e (patch)
tree1a817cafe4fccc9507bb0e24b856a4d7a19d86fb /include
parentbfabab0dbe9d2faebaea28ffaa16ac9daea1a38c (diff)
Add RuntimeException types: NotImplementedError and IOError
Diffstat (limited to 'include')
-rw-r--r--include/jau/basic_types.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/jau/basic_types.hpp b/include/jau/basic_types.hpp
index 53bc54b..de4c250 100644
--- a/include/jau/basic_types.hpp
+++ b/include/jau/basic_types.hpp
@@ -176,6 +176,12 @@ namespace jau {
: RuntimeException("InternalError", m, file, line) {}
};
+ class NotImplementedError : public RuntimeException {
+ public:
+ NotImplementedError(std::string const m, const char* file, int line) noexcept
+ : RuntimeException("NotImplementedError", m, file, line) {}
+ };
+
class NullPointerException : public RuntimeException {
public:
NullPointerException(std::string const m, const char* file, int line) noexcept
@@ -212,6 +218,13 @@ namespace jau {
: RuntimeException("IndexOutOfBoundsException", "Index "+std::to_string(index)+", count "+std::to_string(count)+", data length "+std::to_string(length), file, line) {}
};
+ class IOError : public RuntimeException {
+ public:
+ IOError(std::string const m, const char* file, int line) noexcept
+ : RuntimeException("IOError", m, file, line) {}
+ };
+
+
/**
// *************************************************
// *************************************************