summaryrefslogtreecommitdiff
path: root/src/exceptions.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2017-05-24 12:47:36 +0100
committerCarl Hetherington <cth@carlh.net>2017-05-24 12:47:36 +0100
commit98c2cae73faf52dc346758e893f7e38d2c349c03 (patch)
treef54f9d62ac94960586c1f6ff999838ec25f5a240 /src/exceptions.cc
parent14fe126396241dc1bde571bd57e76e82f8cf4240 (diff)
Better exception when loading a KDM fails.
Diffstat (limited to 'src/exceptions.cc')
-rw-r--r--src/exceptions.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/exceptions.cc b/src/exceptions.cc
index b541beda..fbd8c85f 100644
--- a/src/exceptions.cc
+++ b/src/exceptions.cc
@@ -96,3 +96,9 @@ KDMDecryptionError::KDMDecryptionError (std::string message)
{
}
+
+KDMFormatError::KDMFormatError (std::string message)
+ : runtime_error (String::compose ("Could not parse KDM (%1)", message))
+{
+
+}