X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fexceptions.cc;h=a51842b80352a663a302af009353ebed556288f3;hb=a6c4b4fa16d9c6597e362044b875f3d6df80753f;hp=3f87a2ebe142893bba046fca25075b7423716faa;hpb=dcd9afacd67975a9e20a6d1c4b3998c2890f1c16;p=dcpomatic.git diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc index 3f87a2ebe..a51842b80 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) @@ -139,10 +148,11 @@ GLError::GLError (char const* message) } -CopyError::CopyError (string m, optional n) - : runtime_error (String::compose("%1%2", m, n ? String::compose(" (%1)", *n) : "")) +CopyError::CopyError(string m, optional ext4, optional platform) + : runtime_error(String::compose("%1%2%3", m, ext4 ? String::compose(" (%1)", *ext4) : "", platform ? String::compose(" (%1)", *platform) : "")) , _message (m) - , _number (n) + , _ext4_number(ext4) + , _platform_number(platform) { }