summaryrefslogtreecommitdiff
path: root/src/exceptions.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-04-26 16:42:43 +0200
committerCarl Hetherington <cth@carlh.net>2023-04-26 16:42:47 +0200
commit928b10e8f4195c29a31fe643e38fb00b6c1b8953 (patch)
treec09ebb9b816b7840312f12c8ef80a4fcce63cf11 /src/exceptions.cc
parentaae2f02038b1cd36e1b1bf2e4f0821e86cff2841 (diff)
Give better errors when invalid urn:uuid: strings are found (DoM #2521).
Diffstat (limited to 'src/exceptions.cc')
-rw-r--r--src/exceptions.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/exceptions.cc b/src/exceptions.cc
index 96a9a696..e86a3b89 100644
--- a/src/exceptions.cc
+++ b/src/exceptions.cc
@@ -205,3 +205,10 @@ InconsistentValidityPeriodError::InconsistentValidityPeriodError()
}
+
+BadURNUUIDError::BadURNUUIDError(string bad_id)
+ : runtime_error(String::compose("Badly-formed URN UUID %1", bad_id))
+{
+
+}
+