Throw a specific exception when no WEBVTT header is found.
[libsub.git] / src / exceptions.h
index 1895f110433f88f389193f4a780e8f6148276354..e0d0e90a9a2d6c7a4207bb1e732e9b0415dbe229 100644 (file)
@@ -90,6 +90,15 @@ private:
 };
 
 
+class WebVTTHeaderError : public WebVTTError
+{
+public:
+       WebVTTHeaderError()
+               : WebVTTError("No WEBVTT header found")
+       {}
+};
+
+
 class SSAError : public std::runtime_error
 {
 public: