summaryrefslogtreecommitdiff
path: root/src/lib/exceptions.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-09-22 16:15:08 +0100
committerCarl Hetherington <cth@carlh.net>2015-09-22 16:15:08 +0100
commitbdbe925a467f9b7149322ad8d1c090d4c1e6d5c3 (patch)
tree007f81fe339a08e11afea6b567b79d75a11ad41f /src/lib/exceptions.h
parenta9370ddf1d55ca01307c086950d2294611d9e6a6 (diff)
Use uchardet to guess encoding of subtitle files and reject non-UTF-8.
Diffstat (limited to 'src/lib/exceptions.h')
-rw-r--r--src/lib/exceptions.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/exceptions.h b/src/lib/exceptions.h
index 7240611ee..6939f81a3 100644
--- a/src/lib/exceptions.h
+++ b/src/lib/exceptions.h
@@ -263,4 +263,12 @@ public:
ProgrammingError (std::string file, int line);
};
+class TextEncodingError : public StringError
+{
+public:
+ TextEncodingError (std::string s)
+ : StringError (s)
+ {}
+};
+
#endif