diff options
Diffstat (limited to 'libdimensionxx/dimensionxx/error.hpp')
-rw-r--r-- | libdimensionxx/dimensionxx/error.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libdimensionxx/dimensionxx/error.hpp b/libdimensionxx/dimensionxx/error.hpp index 072949f..8919895 100644 --- a/libdimensionxx/dimensionxx/error.hpp +++ b/libdimensionxx/dimensionxx/error.hpp @@ -22,6 +22,8 @@ #define DIMENSIONXX_ERROR_HPP #include <dimension.h> +#include <stdexcept> +#include <string> namespace Dimension { @@ -33,6 +35,12 @@ namespace Dimension Severity resilience(); void resilience(Severity resilience); + + class Dimension_Error : public std::runtime_error + { + public: + Dimension_Error(const std::string& str); + }; } #endif /* DIMENSIONXX_ERROR_HPP */ |