Store audio fades in template (#2254).
[dcpomatic.git] / src / lib / exceptions.cc
index 9350430f9b96fd912b9c4d2181a152e561dac65e..66db9fda71d0b13414515a697b8a8acced87810b 100644 (file)
@@ -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)
@@ -125,13 +134,20 @@ KDMError::KDMError (string s, string d)
 }
 
 
-GLError::GLError (char const * last, int e)
+GLError::GLError (char const* last, int e)
        : runtime_error (String::compose("%1 failed %2", last, 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)