X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fexceptions.cc;h=d09be61ae8927bbce41826b75fd9890ecc46c7c9;hb=refs%2Fheads%2Fmain;hp=72198fcefffe0bbfe4689b38b84bfe39fc84c332;hpb=4518eac6c41c51e781d2f17e0f26fe7713ac93c1;p=libsub.git 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) +{ + +}