diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-06 11:32:26 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-02-07 01:03:23 +0100 |
| commit | ba0d345e3a986ea07398c1a9abe8d5263a870318 (patch) | |
| tree | 696dee2990c708a913cc165dc9ba1691e225bd6b /src/exceptions.h | |
| parent | 75d997393de1a89f648ac9e7f3122a316640b595 (diff) | |
Throw a specific exception when no WEBVTT header is found.v1.6.47
Diffstat (limited to 'src/exceptions.h')
| -rw-r--r-- | src/exceptions.h | 9 |
1 files changed, 9 insertions, 0 deletions
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: |
