projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix font_id_map errors when importing DCP subtitles that have no
[dcpomatic.git]
/
src
/
lib
/
exceptions.cc
diff --git
a/src/lib/exceptions.cc
b/src/lib/exceptions.cc
index ebb607b9476b77f7969f81c3d5f78d18e1a0f68e..66db9fda71d0b13414515a697b8a8acced87810b 100644
(file)
--- a/
src/lib/exceptions.cc
+++ b/
src/lib/exceptions.cc
@@
-116,6
+116,15
@@
KDMAsContentError::KDMAsContentError ()
}
}
+NetworkError::NetworkError (string s, optional<string> d)
+ : runtime_error (String::compose("%1%2", s, d ? String::compose(" (%1)", *d) : ""))
+ , _summary (s)
+ , _detail (d)
+{
+
+}
+
+
KDMError::KDMError (string s, string d)
: runtime_error (String::compose("%1 (%2)", s, d))
, _summary (s)
KDMError::KDMError (string s, string d)
: runtime_error (String::compose("%1 (%2)", s, d))
, _summary (s)
@@
-132,6
+141,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)
CopyError::CopyError (string m, optional<int> n)
: runtime_error (String::compose("%1%2", m, n ? String::compose(" (%1)", *n) : ""))
, _message (m)