From 1ca864c987c704e66486027570cf689f9508c303 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sun, 23 Aug 2020 22:06:00 +0200 Subject: Add a new exception for problems with LanguageTag. --- src/exceptions.cc | 3 +++ src/exceptions.h | 9 ++++++++- 2 files changed, 11 insertions(+), 1 deletion(-) (limited to 'src') 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 + Copyright (C) 2012-2020 Carl Hetherington 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 -- cgit v1.2.3