From f404efd0c7e58d2e68081bda38b27ae3b718842a Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Wed, 11 Apr 2018 22:23:57 +0100 Subject: Adding exceptions --- yage/core/exception.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 yage/core/exception.h (limited to 'yage/core/exception.h') diff --git a/yage/core/exception.h b/yage/core/exception.h new file mode 100644 index 00000000..05733b39 --- /dev/null +++ b/yage/core/exception.h @@ -0,0 +1,23 @@ +#ifndef YAGE_CORE_EXCEPTION_H +#define YAGE_CORE_EXCEPTION_H + +#include +#include + +namespace yage +{ + +class FileLoadException : public std::runtime_error +{ +public: + FileLoadException(std::string err); + + virtual const char *what() const throw(); + +private: + std::string err_msg; +}; + +} // namespace yage + +#endif -- cgit