From 09512a7cb428ddb7e092a67697aebcf422f8dba1 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 14 Nov 2022 00:32:16 +0100 Subject: Add exception missing from previous commit. --- src/exceptions.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/exceptions.cc') diff --git a/src/exceptions.cc b/src/exceptions.cc index 72198fc..d09be61 100644 --- a/src/exceptions.cc +++ b/src/exceptions.cc @@ -30,9 +30,18 @@ ProgrammingError::ProgrammingError (string file, int line) } + SubripError::SubripError (string saw, string expecting, list 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 context) + : runtime_error("Error in WebVTT file: saw " + (saw.empty() ? "an empty string" : saw) + " when expecting " + expecting) + , _context(context) +{ + +} -- cgit v1.2.3