X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fexceptions.cc;h=66db9fda71d0b13414515a697b8a8acced87810b;hb=2efbbc57d55fec1244f4ac3db949f0e7f90ceda5;hp=9350430f9b96fd912b9c4d2181a152e561dac65e;hpb=689fa55d1529ad88449ca464e9107c4dcc54d1cb;p=dcpomatic.git diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc index 9350430f9..66db9fda7 100644 --- a/src/lib/exceptions.cc +++ b/src/lib/exceptions.cc @@ -116,6 +116,15 @@ KDMAsContentError::KDMAsContentError () } +NetworkError::NetworkError (string s, optional 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 n) : runtime_error (String::compose("%1%2", m, n ? String::compose(" (%1)", *n) : "")) , _message (m)