summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-08-23 22:06:00 +0200
committerCarl Hetherington <cth@carlh.net>2020-09-20 19:30:28 +0200
commit1ca864c987c704e66486027570cf689f9508c303 (patch)
tree3e3398dc9e15e33df9404176627613f82640ea25 /src
parent026204a2c818c56fc391ab5b15f0af16b10babab (diff)
Add a new exception for problems with LanguageTag.
Diffstat (limited to 'src')
-rw-r--r--src/exceptions.cc3
-rw-r--r--src/exceptions.h9
2 files changed, 11 insertions, 1 deletions
diff --git a/src/exceptions.cc b/src/exceptions.cc
index 0256c2b5..70320b52 100644
--- a/src/exceptions.cc
+++ b/src/exceptions.cc
@@ -137,3 +137,6 @@ CombineError::CombineError (string message)
: runtime_error (message)
{}
+LanguageTagError::LanguageTagError (std::string message)
+ : runtime_error (message)
+{}
diff --git a/src/exceptions.h b/src/exceptions.h
index 1fb5e4e7..79ee9fca 100644
--- a/src/exceptions.h
+++ b/src/exceptions.h
@@ -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