aboutsummaryrefslogtreecommitdiff
path: root/include/mglpp/mglpp.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mglpp/mglpp.hpp')
-rw-r--r--include/mglpp/mglpp.hpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/mglpp/mglpp.hpp b/include/mglpp/mglpp.hpp
index 6e790af..dacd134 100644
--- a/include/mglpp/mglpp.hpp
+++ b/include/mglpp/mglpp.hpp
@@ -1,9 +1,19 @@
#ifndef MGLPP_MGLPP_HPP
#define MGLPP_MGLPP_HPP
+#include <stdexcept>
+
namespace mgl {
+ class InitException : public std::exception {
+ public:
+ const char* what() const noexcept override {
+ return "Failed to initialize mgl";
+ }
+ };
+
class Init {
public:
+ // Throws InitException on failure
Init();
~Init();
};