diff options
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) +{ + +} |
