summaryrefslogtreecommitdiff
path: root/src/exceptions.h
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.h
parentaae2f02038b1cd36e1b1bf2e4f0821e86cff2841 (diff)
Give better errors when invalid urn:uuid: strings are found (DoM #2521).
Diffstat (limited to 'src/exceptions.h')
-rw-r--r--src/exceptions.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/exceptions.h b/src/exceptions.h
index 99e55b28..8d85f02a 100644
--- a/src/exceptions.h
+++ b/src/exceptions.h
@@ -323,6 +323,14 @@ public:
InconsistentValidityPeriodError();
};
+
+class BadURNUUIDError : public std::runtime_error
+{
+public:
+ BadURNUUIDError(std::string bad_id);
+};
+
+
}