From f0db2d5b9cfcbcefad688be6d83fba9fa212b98f Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 10 Feb 2026 21:35:38 +0100 Subject: Give line number in SubRip parsing exceptions. --- src/exceptions.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/exceptions.h') 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 context); + SubripError(int line_number, std::string saw, std::string expecting, std::list context); std::list context () const { return _context; } + int line_number() const { + return _line_number; + } + private: + int _line_number; std::list _context; }; -- cgit v1.2.3