From ba0d345e3a986ea07398c1a9abe8d5263a870318 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 6 Feb 2024 11:32:26 +0100 Subject: Throw a specific exception when no WEBVTT header is found. --- src/exceptions.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/exceptions.h') diff --git a/src/exceptions.h b/src/exceptions.h index 1895f11..e0d0e90 100644 --- a/src/exceptions.h +++ b/src/exceptions.h @@ -90,6 +90,15 @@ private: }; +class WebVTTHeaderError : public WebVTTError +{ +public: + WebVTTHeaderError() + : WebVTTError("No WEBVTT header found") + {} +}; + + class SSAError : public std::runtime_error { public: -- cgit v1.2.3