Add exception missing from previous commit.
[libsub.git] / src / exceptions.cc
index 72198fcefffe0bbfe4689b38b84bfe39fc84c332..d09be61ae8927bbce41826b75fd9890ecc46c7c9 100644 (file)
@@ -30,9 +30,18 @@ ProgrammingError::ProgrammingError (string file, int line)
 
 }
 
+
 SubripError::SubripError (string saw, string expecting, list<string> context)
        : runtime_error ("Error in SubRip file: saw " + (saw.empty() ? "an empty string" : saw) + " when expecting " + expecting)
        , _context (context)
 {
 
 }
+
+
+WebVTTError::WebVTTError(string saw, string expecting, list<string> context)
+       : runtime_error("Error in WebVTT file: saw " + (saw.empty() ? "an empty string" : saw) + " when expecting " + expecting)
+       , _context(context)
+{
+
+}