diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-11-14 00:32:16 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-11-14 00:32:16 +0100 |
| commit | 09512a7cb428ddb7e092a67697aebcf422f8dba1 (patch) | |
| tree | c5f597012bbff97c588eabbdce58af429146a128 /src/exceptions.cc | |
| parent | cb8627cf8c0a7051b33b30904dca861a13cb623a (diff) | |
Add exception missing from previous commit.
Diffstat (limited to 'src/exceptions.cc')
| -rw-r--r-- | src/exceptions.cc | 9 |
1 files changed, 9 insertions, 0 deletions
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<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) +{ + +} |
