diff options
| author | Carl Hetherington <cth@carlh.net> | 2021-12-13 01:00:37 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2021-12-13 22:45:54 +0100 |
| commit | 89547a4110fcee9081a22ae206bd4367e736688c (patch) | |
| tree | 29d3227be1a6d2cadb3987f9bfccb2f02a7f94a4 /src/lib/exceptions.cc | |
| parent | afb05a1c45a77e5cc251e113b5159bab39b1db6e (diff) | |
Extend NetworkError to take a detail parameter.
Diffstat (limited to 'src/lib/exceptions.cc')
| -rw-r--r-- | src/lib/exceptions.cc | 9 |
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) |
