summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-05-09 00:49:58 +0100
committerCarl Hetherington <cth@carlh.net>2019-05-10 23:43:55 +0100
commita8e31120a793f09ab56cc2847d76944ba698ba95 (patch)
tree535148c71dca072b2c2b4639e7da2228db353334 /src/lib
parentf41818f14369f170475b7f2bde1a2dd856517b14 (diff)
Basics of OpenGL viewer.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/exceptions.cc6
-rw-r--r--src/lib/exceptions.h7
2 files changed, 13 insertions, 0 deletions
diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc
index 481d2e89d..c86f98da2 100644
--- a/src/lib/exceptions.cc
+++ b/src/lib/exceptions.cc
@@ -100,3 +100,9 @@ KDMError::KDMError (string s, string d)
{
}
+
+GLError::GLError (char const * last, int e)
+ : runtime_error (String::compose("%1 failed %2", last, e))
+{
+
+}
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h
index fe87ababc..f6b3bd902 100644
--- a/src/lib/exceptions.h
+++ b/src/lib/exceptions.h
@@ -285,4 +285,11 @@ public:
KDMAsContentError ();
};
+class GLError : public std::runtime_error
+{
+public:
+ GLError (char const * last, int e);
+};
+
+
#endif