diff options
author | Sven Gothel <[email protected]> | 2022-05-28 05:14:47 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2022-05-28 05:14:47 +0200 |
commit | 82a95dd9058abec41a539a4e0b2dba4c109ca55e (patch) | |
tree | 1a817cafe4fccc9507bb0e24b856a4d7a19d86fb /include | |
parent | bfabab0dbe9d2faebaea28ffaa16ac9daea1a38c (diff) |
Add RuntimeException types: NotImplementedError and IOError
Diffstat (limited to 'include')
-rw-r--r-- | include/jau/basic_types.hpp | 13 |
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) {} + }; + + /** // ************************************************* // ************************************************* |