summaryrefslogtreecommitdiff
path: root/src/lib/exceptions.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2026-01-04 17:36:52 +0100
committerCarl Hetherington <cth@carlh.net>2026-01-04 20:35:06 +0100
commitcbd5a1af4be2d6483ad28d04089c6848574fdb76 (patch)
treeaab34b0367a18f1962812161270be9a0165d9150 /src/lib/exceptions.cc
parentddfeed4cbb8b9dfe3a6e77ef7e9e99532dfa3056 (diff)
Add new {CertificateRead,Download}Error exceptions.
Diffstat (limited to 'src/lib/exceptions.cc')
-rw-r--r--src/lib/exceptions.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/exceptions.cc b/src/lib/exceptions.cc
index e2e7fc4bc..dbeae409f 100644
--- a/src/lib/exceptions.cc
+++ b/src/lib/exceptions.cc
@@ -190,3 +190,11 @@ SQLError::get_filename(SQLiteDatabase& db)
return {};
}
+
+
+CertificateReadError::CertificateReadError(string const& detail)
+ : std::runtime_error(fmt::format(_("Could not read certificate file ({})", detail)))
+{
+
+}
+