Add exception missing from previous commit.
[libsub.git] / src / exceptions.cc
index bc131b82d1763e8349291df5bb5c1c2308dc7c8a..d09be61ae8927bbce41826b75fd9890ecc46c7c9 100644 (file)
@@ -19,7 +19,6 @@
 
 #include "compose.hpp"
 #include "exceptions.h"
-#include <boost/foreach.hpp>
 
 using std::list;
 using std::string;
@@ -31,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)
+{
+
+}