diff options
| author | Carl Hetherington <cth@carlh.net> | 2026-02-10 21:35:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2026-02-10 21:35:38 +0100 |
| commit | f0db2d5b9cfcbcefad688be6d83fba9fa212b98f (patch) | |
| tree | 21009f6d545353b06f6f1be72a1d4dc36be09881 /src/exceptions.h | |
| parent | ee87162cb5405d68af62a84e6d2262854f9e3fc1 (diff) | |
Give line number in SubRip parsing exceptions.v1.6.59
Diffstat (limited to 'src/exceptions.h')
| -rw-r--r-- | src/exceptions.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/exceptions.h b/src/exceptions.h index 3b2961d..58659ad 100644 --- a/src/exceptions.h +++ b/src/exceptions.h @@ -55,13 +55,18 @@ public: class SubripError : public std::runtime_error { public: - SubripError (std::string saw, std::string expecting, std::list<std::string> context); + SubripError(int line_number, std::string saw, std::string expecting, std::list<std::string> context); std::list<std::string> context () const { return _context; } + int line_number() const { + return _line_number; + } + private: + int _line_number; std::list<std::string> _context; }; |
