projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add new GLError constructor.
[dcpomatic.git]
/
src
/
lib
/
exceptions.cc
diff --git
a/src/lib/exceptions.cc
b/src/lib/exceptions.cc
index ebb607b9476b77f7969f81c3d5f78d18e1a0f68e..3f87a2ebe142893bba046fca25075b7423716faa 100644
(file)
--- a/
src/lib/exceptions.cc
+++ b/
src/lib/exceptions.cc
@@
-132,6
+132,13
@@
GLError::GLError (char const* last, int e)
}
+GLError::GLError (char const* message)
+ : runtime_error (message)
+{
+
+}
+
+
CopyError::CopyError (string m, optional<int> n)
: runtime_error (String::compose("%1%2", m, n ? String::compose(" (%1)", *n) : ""))
, _message (m)