summaryrefslogtreecommitdiff
path: root/src/lib/exceptions.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-12-13 01:00:37 +0100
committerCarl Hetherington <cth@carlh.net>2021-12-13 01:00:37 +0100
commit964ddc8b2a46cf386b25321257ad87aa0985c121 (patch)
tree7e2bfc0599358f46f776382272e83a180be0f1c8 /src/lib/exceptions.cc
parentc6a26cef90f6dd99fff4dd928b9e7417dead2b0b (diff)
Extend NetworkError to take a detail parameter.
Diffstat (limited to 'src/lib/exceptions.cc')
-rw-r--r--src/lib/exceptions.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc
index 3f87a2ebe..7e98a2b57 100644
--- a/src/lib/exceptions.cc
+++ b/src/lib/exceptions.cc
@@ -116,6 +116,15 @@ KDMAsContentError::KDMAsContentError ()
}
+NetworkError::NetworkError (string s, string d)
+ : runtime_error (String::compose("%1 (%2)", s, d))
+ , _summary (s)
+ , _detail (d)
+{
+
+}
+
+
KDMError::KDMError (string s, string d)
: runtime_error (String::compose("%1 (%2)", s, d))
, _summary (s)