Add a new exception for problems with LanguageTag.
authorCarl Hetherington <cth@carlh.net>
Sun, 23 Aug 2020 20:06:00 +0000 (22:06 +0200)
committerCarl Hetherington <cth@carlh.net>
Sun, 20 Sep 2020 17:30:28 +0000 (19:30 +0200)
src/exceptions.cc
src/exceptions.h

index 0256c2b55008d2ee82badf43662f023d49ec438d..70320b528fd0ac290c846f4f0dd9655d58e9a8fc 100644 (file)
@@ -137,3 +137,6 @@ CombineError::CombineError (string message)
        : runtime_error (message)
 {}
 
+LanguageTagError::LanguageTagError (std::string message)
+       : runtime_error (message)
+{}
index 1fb5e4e708f901394a03b4c2deda4902f7dbdf27..79ee9fca285bb2a4002a7c17a30a421bdcd1345e 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2012-2019 Carl Hetherington <cth@carlh.net>
+    Copyright (C) 2012-2020 Carl Hetherington <cth@carlh.net>
 
     This file is part of libdcp.
 
@@ -247,6 +247,13 @@ public:
        explicit CombineError (std::string message);
 };
 
+
+class LanguageTagError : public std::runtime_error
+{
+public:
+       LanguageTagError (std::string message);
+};
+
 }
 
 #endif